Interface ConnectorFactory<T,C>
- Type Parameters:
T- Connector supertypeC- 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 TypeMethodDescriptionList all available configurations loaded by the runtimegetInstance(String type) Create a Connector instance by typevoidregisterConfiguration(C configuration) Dynamically register a new Connector configuration.voidReload all connectors from classpath and reset all manually registered connectors
-
Method Details
-
getConfigurations
List all available configurations loaded by the runtime- Returns:
- List of available configurations
-
getInstance
Create a Connector instance by type- Parameters:
type- Connector type- Returns:
- Connector instance
-
registerConfiguration
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
-