Class DefaultInboundConnectorFactory
java.lang.Object
io.camunda.connector.runtime.util.inbound.DefaultInboundConnectorFactory
- All Implemented Interfaces:
ConnectorFactory<InboundConnectorExecutable,,InboundConnectorConfiguration> InboundConnectorFactory
Factory for inbound Connectors.
Unlike outbound Connectors, which are stateless functions, inbound Connectors are stateful. They have a lifecycle, can be deactivated, and a new instance of an inbound Connector is required each time. Therefore, this factory actually creates a new object every time a Connector instance is requested.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList all available configurations loaded by the runtimegetInstance(String type) Create a Connector instance by typeprotected voidvoidregisterConfiguration(InboundConnectorConfiguration configuration) Dynamically register a new Connector configuration.voidReload all connectors from classpath and reset all manually registered connectors
-
Constructor Details
-
DefaultInboundConnectorFactory
public DefaultInboundConnectorFactory()
-
-
Method Details
-
getConfigurations
Description copied from interface:ConnectorFactoryList all available configurations loaded by the runtime- Specified by:
getConfigurationsin interfaceConnectorFactory<InboundConnectorExecutable,InboundConnectorConfiguration> - Returns:
- List of available configurations
-
getInstance
Description copied from interface:ConnectorFactoryCreate a Connector instance by type- Specified by:
getInstancein interfaceConnectorFactory<InboundConnectorExecutable,InboundConnectorConfiguration> - Parameters:
type- Connector type- Returns:
- Connector instance
-
registerConfiguration
Description copied from interface:ConnectorFactoryDynamically register a new Connector configuration. If a connector with the same type already exists, it will be overridden by the new configuration.- Specified by:
registerConfigurationin interfaceConnectorFactory<InboundConnectorExecutable,InboundConnectorConfiguration> - Parameters:
configuration- Configuration to register
-
resetConfigurations
public void resetConfigurations()Description copied from interface:ConnectorFactoryReload all connectors from classpath and reset all manually registered connectors- Specified by:
resetConfigurationsin interfaceConnectorFactory<InboundConnectorExecutable,InboundConnectorConfiguration>
-
loadConnectorConfigurations
protected void loadConnectorConfigurations()
-