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