Package org.tquadrat.foundation.config
Class ConfigurationChangeEvent
java.lang.Object
java.util.EventObject
org.tquadrat.foundation.config.ConfigurationChangeEvent
- All Implemented Interfaces:
- Serializable
@ClassVersion(sourceVersion="$Id: ConfigurationChangeEvent.java 1078 2023-10-19 14:39:47Z tquadrat $")
@API(status=STABLE,
     since="0.0.1")
public final class ConfigurationChangeEvent
extends EventObject
The event object that is thrown each time a property of a configuration
  bean is changed.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: ConfigurationChangeEvent.java 1078 2023-10-19 14:39:47Z tquadrat $
- Since:
- 0.0.1
- See Also:
- UML Diagram
- 
    
         UML Diagram for "org.tquadrat.foundation.config.ConfigurationChangeEvent" 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ObjectThe new value of the property.private final ObjectThe old value of the property.private final StringThe name of the property.Fields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionConfigurationChangeEvent(ConfigBeanSpec sourceBean, String propertyName, Object oldValue, Object newValue) Creates a newConfigurationChangeEventinstance.
- 
Method SummaryModifier and TypeMethodDescriptionfinal ObjectGets the new value for the property, expressed as an instance ofObject.final ObjectGets the old value for the property, expressed as an instance ofObject.final StringGets the name of the configuration property that was changed.final ConfigBeanSpecfinal StringtoString()
- 
Field Details- 
m_NewValueThe new value of the property.
- 
m_OldValueThe old value of the property.
- 
m_PropertyNameThe name of the property.
 
- 
- 
Constructor Details- 
ConfigurationChangeEventpublic ConfigurationChangeEvent(ConfigBeanSpec sourceBean, String propertyName, Object oldValue, Object newValue) Creates a newConfigurationChangeEventinstance.- Parameters:
- sourceBean- The reference to the configuration bean that fired the change event.
- propertyName- The name of the property that was modified.
- oldValue- The property's value before the change; obviously, this can be- null, depending on the property.
- newValue- The new value of the property; if allowed by the property, this can be- nullalso.
 
 
- 
- 
Method Details- 
getNewValueGets the new value for the property, expressed as an instance ofObject.- Returns:
- The new value for the property, expressed as an instance of
      Object. May benull.
 
- 
getOldValueGets the old value for the property, expressed as an instance ofObject.- Returns:
- The old value for the property, expressed as an instance of
      Object. May benull.
 
- 
getPropertyNameGets the name of the configuration property that was changed.- Returns:
- The name of the property that was changed.
 
- 
getSource- Overrides:
- getSourcein class- EventObject
 
- 
toString- Overrides:
- toStringin class- EventObject
 
 
- 
