Class Connectors

java.lang.Object
org.camunda.connect.Connectors

public class Connectors extends Object
Provides access to all available connectors.
  • Field Details

    • LOG

      protected static ConnectCoreLogger LOG
    • HTTP_CONNECTOR_ID

      public static String HTTP_CONNECTOR_ID
    • SOAP_HTTP_CONNECTOR_ID

      public static String SOAP_HTTP_CONNECTOR_ID
    • availableConnectors

      protected Map<String,Connector<?>> availableConnectors
  • Constructor Details

    • Connectors

      public Connectors()
  • Method Details

    • getInstance

      public static Connectors getInstance()
      Provides the global instance of the Connectors manager.
      Returns:
      the global instance
    • http

      public static <C extends Connector<? extends ConnectorRequest<?>>> C http()
      Returns:
      the connector for the default http connector id or null if no connector is registered for this id
    • soap

      public static <C extends Connector<? extends ConnectorRequest<?>>> C soap()
      Returns:
      the connector for the default soap http connector id or null if no connector is registered for this id
    • getConnector

      public static <C extends Connector<? extends ConnectorRequest<?>>> C getConnector(String connectorId)
      Returns:
      the connector for the given id or null if no connector is registered for this id
    • getAvailableConnectors

      public static Set<Connector<? extends ConnectorRequest<?>>> getAvailableConnectors()
      Returns:
      all register connectors
    • loadConnectors

      public static void loadConnectors()
      Load all available connectors.
    • loadConnectors

      public static void loadConnectors(ClassLoader classloader)
      Load all available connectors with the given classloader.
    • registerConnector

      protected static void registerConnector(Connector<?> connector)
      Register a new connector.
    • registerConnector

      protected static void registerConnector(String connectorId, Connector<?> connector)
      Register a new connector under the given connector id.
    • unregisterConnector

      protected static void unregisterConnector(String connectorId)
    • getAllAvailableConnectors

      public Set<Connector<? extends ConnectorRequest<?>>> getAllAvailableConnectors()
      Returns:
      all register connectors
    • getConnectorById

      public <C extends Connector<? extends ConnectorRequest<?>>> C getConnectorById(String connectorId)
      Returns:
      the connector for the given id or null if no connector is registered for this id
    • ensureConnectorProvidersInitialized

      protected void ensureConnectorProvidersInitialized()
      Detect all available connectors in the classpath using a ServiceLoader.
    • initializeConnectors

      protected void initializeConnectors(ClassLoader classLoader)
    • registerConnectors

      protected void registerConnectors(Map<String,Connector<?>> connectors, ClassLoader classLoader)
    • registerProvider

      protected void registerProvider(Map<String,Connector<?>> connectors, ConnectorProvider provider)
    • registerConnectorInstance

      protected void registerConnectorInstance(String connectorId, Connector<?> connector)
    • unregisterConnectorInstance

      protected void unregisterConnectorInstance(String connectorId)
    • applyConfigurators

      protected void applyConfigurators(Map<String,Connector<?>> connectors, ClassLoader classLoader)
    • applyConfigurator

      protected void applyConfigurator(Map<String,Connector<?>> connectors, ConnectorConfigurator configurator)