Interface ConnectorManager

All Known Implementing Classes:
DefaultConnectorManager

public interface ConnectorManager
Entry point for creating and destroying connectors for external resources.
See Also:
  • 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 instance
      confOverride - configuration override
      capabilitiesOverride - 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:
    • unload

      void unload()
      Unload connectors for all existing resources.
      See Also:
    • 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