public abstract class AbstractConfiguration extends java.lang.Object implements Configuration
| Constructor and Description |
|---|
AbstractConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ConnectorMessages |
getConnectorMessages()
Should return the
message catalog that is set by
Configuration.setConnectorMessages(ConnectorMessages). |
void |
setConnectorMessages(ConnectorMessages messages)
Sets the
message catalog instance that allows the Connector
to localize messages. |
abstract void |
validate()
Determines if the configuration is valid.
|
public final ConnectorMessages getConnectorMessages()
Configurationmessage catalog that is set by
Configuration.setConnectorMessages(ConnectorMessages).getConnectorMessages in interface ConfigurationConnectorMessages instance.public final void setConnectorMessages(ConnectorMessages messages)
Configurationmessage catalog instance that allows the Connector
to localize messages. This method is called before any bean property setter,
the Configuration.validate() method or the Configuration.getConnectorMessages() method.setConnectorMessages in interface Configurationmessages - the message catalog.public abstract void validate()
ConfigurationA 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.
validate in interface Configuration