Interface ConnectorManager
- All Known Implementing Classes:
DefaultConnectorManager
public interface ConnectorManager
Entry point for creating and destroying connectors for external resources.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuildConnInstanceOverride
(ConnInstanceTO connInstance, Optional<List<ConnConfProperty>> confOverride, Optional<Set<ConnectorCapability>> capabilitiesOverride) Builds connector instance override over base connector instance, configuration and capabilities.createConnector
(ConnInstance connInstance) Create connector from given connector instance.getConnector
(ExternalResource resource) Get existing connector bean for the given resource or create if not found.void
load()
Load connectors for all existing resources.readConnector
(ExternalResource resource) void
registerConnector
(ExternalResource resource) Create and register into Spring context a bean for the given resource.void
unload()
Unload connectors for all existing resources.void
unregisterConnector
(ExternalResource resource) Removes the Spring bean for the given resource from the context.
-
Method Details
-
buildConnInstanceOverride
ConnInstance buildConnInstanceOverride(ConnInstanceTO connInstance, Optional<List<ConnConfProperty>> confOverride, Optional<Set<ConnectorCapability>> capabilitiesOverride) Builds connector instance override over base connector instance, configuration and capabilities.- Parameters:
connInstance
- base connector instanceconfOverride
- configuration overridecapabilitiesOverride
- capabilities override- Returns:
- connector instance override over base connector instance, configuration and capabilities
-
createConnector
Create connector from given connector instance.- Parameters:
connInstance
- connector instance- Returns:
- connector
-
getConnector
Get existing connector bean for the given resource or create if not found.- Parameters:
resource
- the resource- Returns:
- live connector bean for given resource
-
readConnector
-
load
void load()Load connectors for all existing resources.- See Also:
-
unload
void unload()Unload connectors for all existing resources.- See Also:
-
registerConnector
Create and register into Spring context a bean for the given resource.- Parameters:
resource
- external resource
-
unregisterConnector
Removes the Spring bean for the given resource from the context.- Parameters:
resource
- external resource
-