|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
'Service Provider Interface' package - the developer of a connector-bundle implements the SPI.
See:
Description
Interface Summary | |
---|---|
AttributeNormalizer | Interface to be implemented by connectors that need to normalize certain attributes. |
Configuration | Encapsulates the configuration of a connector. |
Connector | This is the main interface to declare a connector. |
PoolableConnector | To be implemented by connectors that wish to be pooled. |
Class Summary | |
---|---|
AbstractConfiguration | Convenient base-class for Configuration objects to extend. |
Annotation Types Summary | |
---|---|
ConfigurationProperty | The Configuration interface is traversed through reflection. |
ConnectorClass | This annotation must be present on each connector class. |
'Service Provider Interface' package - the developer of a connector-bundle implements the SPI. The Connector
developer is responsible for implementing the following interfaces to build a Connector
.
Configuration
interface. The Configuration.validate()
method is used to determine whether the configuration information that has been provided is valid. The implementation should simply be a Java Bean. There should be a getter and setter for each configuration property. For instance, if the resource is a database instance then some typical configuration information would include the JDBC driver, the host name of remote machine or the URL, and some connection credentials. The getter should return the default value.Connector
interface. This interface insures proper initialization and disposal of the Connector
. If the Connector
developer would like the API to handle 'Connection Pooling', the Connector must implement the PoolableConnector
interface. Note that the framework actually pools instances of PollableConnector (rather than pooling connections within a connector).CreateOp
, UpdateOp
, DeleteOp
, SearchOp
, etc..
The operations
package has many operations from which to choose. In some cases, one operation does the same thing as another but exposes more options. For instance there are two update operations. UpdateOp
is simpler to implement than UpdateAttributeValuesOp
.
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |