public interface ConnectorFactory
ConnectorType.validateConfig
may create instances of the connector for the
purpose of validation. Connector instances created by the
factory are not added to the Connector Manager's list of running
connectors and do not have an on-disk representation.| Modifier and Type | Method and Description |
|---|---|
Connector |
makeConnector(java.util.Map<java.lang.String,java.lang.String> config)
Make a
Connector instance of the ConnectorType
that owns this ConnectorFactory instance using the supplied
Map of configuration properties. |
Connector makeConnector(java.util.Map<java.lang.String,java.lang.String> config) throws RepositoryException
Connector instance of the ConnectorType
that owns this ConnectorFactory instance using the supplied
Map of configuration properties.config - a Map of configuration properties.
If null, the Map that was passed to
validateConfig is used.Connector instance, instantiated by the Connector
Manager in exactly the same way as it would if this config
were valid and persisted.RepositoryException - if the Connector construction
fails for any reason.