Package org.camunda.connect
Class Connectors
java.lang.Object
org.camunda.connect.Connectors
Provides access to all available connectors.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyConfigurator
(Map<String, Connector<?>> connectors, ConnectorConfigurator configurator) protected void
applyConfigurators
(Map<String, Connector<?>> connectors, ClassLoader classLoader) protected void
Detect all available connectors in the classpath using aServiceLoader
.Set<Connector<? extends ConnectorRequest<?>>>
static Set<Connector<? extends ConnectorRequest<?>>>
static <C extends Connector<? extends ConnectorRequest<?>>>
CgetConnector
(String connectorId) <C extends Connector<? extends ConnectorRequest<?>>>
CgetConnectorById
(String connectorId) static Connectors
Provides the global instance of the Connectors manager.static <C extends Connector<? extends ConnectorRequest<?>>>
Chttp()
protected void
initializeConnectors
(ClassLoader classLoader) static void
Load all available connectors.static void
loadConnectors
(ClassLoader classloader) Load all available connectors with the given classloader.protected static void
registerConnector
(String connectorId, Connector<?> connector) Register a new connector under the given connector id.protected static void
registerConnector
(Connector<?> connector) Register a new connector.protected void
registerConnectorInstance
(String connectorId, Connector<?> connector) protected void
registerConnectors
(Map<String, Connector<?>> connectors, ClassLoader classLoader) protected void
registerProvider
(Map<String, Connector<?>> connectors, ConnectorProvider provider) static <C extends Connector<? extends ConnectorRequest<?>>>
Csoap()
protected static void
unregisterConnector
(String connectorId) protected void
unregisterConnectorInstance
(String connectorId)
-
Field Details
-
LOG
-
HTTP_CONNECTOR_ID
-
SOAP_HTTP_CONNECTOR_ID
-
availableConnectors
-
-
Constructor Details
-
Connectors
public Connectors()
-
-
Method Details
-
getInstance
Provides the global instance of the Connectors manager.- Returns:
- the global instance
-
http
- Returns:
- the connector for the default http connector id or null if no connector is registered for this id
-
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
- Returns:
- all register connectors
-
loadConnectors
public static void loadConnectors()Load all available connectors. -
loadConnectors
Load all available connectors with the given classloader. -
registerConnector
Register a new connector. -
registerConnector
Register a new connector under the given connector id. -
unregisterConnector
-
getAllAvailableConnectors
- Returns:
- all register connectors
-
getConnectorById
- 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 aServiceLoader
. -
initializeConnectors
-
registerConnectors
-
registerProvider
-
registerConnectorInstance
-
unregisterConnectorInstance
-
applyConfigurators
-
applyConfigurator
protected void applyConfigurator(Map<String, Connector<?>> connectors, ConnectorConfigurator configurator)
-