public interface StatefulConfiguration extends Configuration
Configurationand 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 the
Connector.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 the
Connector.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
PoolableConnectorthen this configuration is kept in the
ConnectorPoolManagerand when the
release()method. If the connector implements only the
Connectorthen this configuration is kept in the
ConnectorFacadeand the application must take care of releasing.
Copyright © 2015. All rights reserved.