public interface ConnectorFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Modifier and Type | Method and Description |
---|---|
InputConnector |
createInputConnector(java.lang.String name)
Create an event input connector for this provider
|
OutputConnector |
createOutputConnector(java.lang.String name)
Create an event output connector for this provider
|
RequestConnector |
createRequestConnector(java.lang.String name)
Create a request connector for this provider
|
ConnectorServices |
getConnectorServices()
Application services
|
java.lang.String |
getInfo()
Freeform info about the factory.
|
java.util.Properties |
getProperties()
The metadata properties used to configure the factory
|
java.lang.String |
getProviderName()
The identifying name of the provider
|
void |
initialise(java.lang.String providerName,
java.util.Properties properties,
ConnectorServices services)
Initialise the provider with properties obtained from the factory metadata via the ConnectorRegistry.
|
void |
terminate()
Clear any shared resources
|
static final java.lang.String COPYRIGHT
void initialise(java.lang.String providerName, java.util.Properties properties, ConnectorServices services) throws ConnectorException
providerName
- the name of the providerproperties
- the properties from the factory metadataservices
- application servicesConnectorException
void terminate() throws ConnectorException
ConnectorException
java.lang.String getInfo()
java.lang.String getProviderName()
java.util.Properties getProperties()
ConnectorServices getConnectorServices()
InputConnector createInputConnector(java.lang.String name) throws ConnectorException
name
- the name of the input connectorConnectorException
OutputConnector createOutputConnector(java.lang.String name) throws ConnectorException
name
- the name of the output connectorConnectorException
RequestConnector createRequestConnector(java.lang.String name) throws ConnectorException
name
- the name of the request connectorConnectorException