Class AbstractConfiguration
- java.lang.Object
-
- org.identityconnectors.framework.spi.AbstractConfiguration
-
- All Implemented Interfaces:
Configuration
- Direct Known Subclasses:
TstConnectorConfig
public abstract class AbstractConfiguration extends Object implements Configuration
Convenient base-class for Configuration objects to extend.
-
-
Constructor Summary
Constructors Constructor Description AbstractConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ConnectorMessages
getConnectorMessages()
Should return themessage catalog
that is set byConfiguration.setConnectorMessages(ConnectorMessages)
.void
setConnectorMessages(ConnectorMessages messages)
Sets themessage catalog
instance that allows the Connector to localize messages.abstract void
validate()
Determines if the configuration is valid.
-
-
-
Method Detail
-
getConnectorMessages
public final ConnectorMessages getConnectorMessages()
Description copied from interface:Configuration
Should return themessage catalog
that is set byConfiguration.setConnectorMessages(ConnectorMessages)
.- Specified by:
getConnectorMessages
in interfaceConfiguration
- Returns:
- the
ConnectorMessages
instance.
-
setConnectorMessages
public final void setConnectorMessages(ConnectorMessages messages)
Description copied from interface:Configuration
Sets themessage catalog
instance that allows the Connector to localize messages. This method is called before any bean property setter, theConfiguration.validate()
method or theConfiguration.getConnectorMessages()
method.- Specified by:
setConnectorMessages
in interfaceConfiguration
- Parameters:
messages
- the message catalog.
-
validate
public abstract void validate()
Description copied from interface:Configuration
Determines if the configuration is valid.A valid configuration is one that is ready to be used by the connector: it is complete (all the required properties have been given values) and the property values are well-formed (are in the expected range, have the expected format, etc.)
Implementations of this method should not connect to the resource in an attempt to validate the configuration. For example, implementations should not attempt to check that a host of the specified name exists by making a connection to it. Such checks can be performed in the implementation of the
TestOp.test()
method.- Specified by:
validate
in interfaceConfiguration
-
-