public class SimpleConnectorFactory extends java.lang.Object implements ConnectorFactory
ConnectorFactory interface.
Connector developers may want to use this to implement unit tests.| Constructor and Description |
|---|
SimpleConnectorFactory(Connector instance) |
| 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. |
public SimpleConnectorFactory(Connector instance)
public Connector makeConnector(java.util.Map<java.lang.String,java.lang.String> config) throws RepositoryException
ConnectorFactoryConnector instance of the ConnectorType
that owns this ConnectorFactory instance using the supplied
Map of configuration properties.makeConnector in interface ConnectorFactoryconfig - 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 a subclass overrides this method and throws
RepositoryException.