Interface for discovery services which are used to store and resolve connection parameters to connect to external services.
Description
The IDiscovery interface is used to create discovery services which are used to store and resolve connection parameters used to connect to external services.
Instance methods
register
Registers connection parameters into the discovery service.
void register(IContext context, String key, ConnectionParams connection) throws ApplicationException
- context: IContext - (optional) a context to trace execution through call chain.
- key: String - a key to uniquely identify the connection parameters.
- connection: ConnectionParams - a connection to be registered.
resolveAll
Resolves all connection parameters by their key.
List<ConnectionParams> resolveAll(IContext context, String key) throws ApplicationException
- context: IContext - (optional) a context to trace execution through call chain.
- key: String - a key to uniquely identify the connections.
- returns: List<ConnectionParams> - a list with resolved connections.
resolveOne
Resolves a single connection parameters by its key.
ConnectionParams resolveOne(IContext context, String key) throws ApplicationException
- context: IContext - (optional) a context to trace execution through call chain.
- key: string - a key to uniquely identify the connection.
- returns: ConnectionParams - a resolved connection.