Class AbstractConfiguration
java.lang.Object
org.identityconnectors.framework.spi.AbstractConfiguration
- All Implemented Interfaces:
Configuration
- Direct Known Subclasses:
AbstractScriptedConfiguration
,TstConnectorConfig
Convenient base-class for Configuration objects to extend.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ConnectorMessages
Should return themessage catalog
that is set byConfiguration.setConnectorMessages(ConnectorMessages)
.final void
setConnectorMessages
(ConnectorMessages messages) Sets themessage catalog
instance that allows the Connector to localize messages.abstract void
validate()
Determines if the configuration is valid.
-
Constructor Details
-
AbstractConfiguration
public AbstractConfiguration()
-
-
Method Details
-
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
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
-