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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ConnectorMessagesShould return themessage catalogthat is set byConfiguration.setConnectorMessages(ConnectorMessages).final voidsetConnectorMessages(ConnectorMessages messages) Sets themessage cataloginstance that allows the Connector to localize messages.abstract voidvalidate()Determines if the configuration is valid.
-
Constructor Details
-
AbstractConfiguration
public AbstractConfiguration()
-
-
Method Details
-
getConnectorMessages
Description copied from interface:ConfigurationShould return themessage catalogthat is set byConfiguration.setConnectorMessages(ConnectorMessages).- Specified by:
getConnectorMessagesin interfaceConfiguration- Returns:
- the
ConnectorMessagesinstance.
-
setConnectorMessages
Description copied from interface:ConfigurationSets themessage cataloginstance 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:
setConnectorMessagesin interfaceConfiguration- Parameters:
messages- the message catalog.
-
validate
public abstract void validate()Description copied from interface:ConfigurationDetermines 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:
validatein interfaceConfiguration
-