Interface ConnectorFactory<T,C>

Type Parameters:
T - Connector supertype
C - Connector configuration type
All Known Subinterfaces:
InboundConnectorFactory, OutboundConnectorFactory
All Known Implementing Classes:
DefaultInboundConnectorFactory, DefaultOutboundConnectorFactory

public interface ConnectorFactory<T,C>
Connector factory stores all available Connector configurations and creates Connector instances
  • Method Summary

    Modifier and Type
    Method
    Description
    List all available configurations loaded by the runtime
    Create a Connector instance by type
    void
    registerConfiguration(C configuration)
    Dynamically register a new Connector configuration.
    void
    Reload all connectors from classpath and reset all manually registered connectors
  • Method Details

    • getConfigurations

      List<C> getConfigurations()
      List all available configurations loaded by the runtime
      Returns:
      List of available configurations
    • getInstance

      T getInstance(String type)
      Create a Connector instance by type
      Parameters:
      type - Connector type
      Returns:
      Connector instance
    • registerConfiguration

      void registerConfiguration(C configuration)
      Dynamically register a new Connector configuration. If a connector with the same type already exists, it will be overridden by the new configuration.
      Parameters:
      configuration - Configuration to register
    • resetConfigurations

      void resetConfigurations()
      Reload all connectors from classpath and reset all manually registered connectors