de.qfs.lib.config
Class ConfigurationEvent
java.lang.Object
|
+--java.util.EventObject
|
+--de.qfs.lib.config.ConfigurationEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ConfigurationEvent
- extends java.util.EventObject
This event encapsulates the details of a state change in a Configurable
registered with the Configuration
.
- Version:
- $Revision: 1.6 $
- Author:
- Gregor Schmid
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
Configurable |
getConfigurable()
Get the changed Configurable. |
java.lang.String |
getConfigurableName()
Get the name under which the Configurable is registered. |
java.util.Properties |
state()
Get the new state of the Configurable. |
java.lang.String |
toString()
Get a String representation of the ConfigurationEvent |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConfigurationEvent
public ConfigurationEvent(Configurable source,
java.lang.String name,
java.util.Properties state)
- Create a new ConfigurationEvent.
- Parameters:
source
- The Configurable that changed state.name
- The name under which the Configurable is registered.state
- The new state of the Configurable.
getConfigurableName
public final java.lang.String getConfigurableName()
- Get the name under which the Configurable is registered.
- Returns:
- The Configurable's registration name.
getConfigurable
public final Configurable getConfigurable()
- Get the changed Configurable.
- Returns:
- The Configurable that changed.
state
public final java.util.Properties state()
- Get the new state of the Configurable.
- Returns:
- The Configurable's new state.
toString
public java.lang.String toString()
- Get a String representation of the ConfigurationEvent
- Overrides:
toString
in class java.util.EventObject
- Returns:
- The String representation.