Interface StatefulConfiguration
-
- All Superinterfaces:
Configuration
public interface StatefulConfiguration extends Configuration
A Stateful Configuration interface extends the defaultConfiguration
and makes the framework keep the same instance.The default Configuration object instance is constructed every single time before the
Connector.init(Configuration)
is called. If the configuration class implements this interface then the Framework keeps one instance of Configuration and theConnector.init(Configuration)
is called with the same instance. This requires extra caution because the framework only guaranties to create one instance and set the properties before it calls theConnector.init(Configuration)
on different connector instances in multiple different threads at the same time. The Connector developer must quarantine that the necessary resource initialisation are thread-safe.If the connector implements the
PoolableConnector
then this configuration is kept in the org.identityconnectors.framework.impl.api.local.ConnectorPoolManager and when the org.identityconnectors.framework.impl.api.local.ConnectorPoolManager#dispose() calls therelease()
method. If the connector implements only theConnector
then this configuration is kept in theConnectorFacade
and the application must take care of releasing.- Since:
- 1.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
release()
Release any allocated resources.-
Methods inherited from interface org.identityconnectors.framework.spi.Configuration
getConnectorMessages, setConnectorMessages, validate
-
-