public class ConfigurationEvent extends EventObject
An event class for reporting updates on a configuration object.
Event objects of this type are used for "raw" events, i.e. unfiltered modifications of any kind. A level with semantically higher events (e.g. for property changes) may be built on top of this fundamental event mechanism.
Each event can contain the following data:
The following standard events are generated by typical configuration
implementations (the constants for the event types are defined in
addProperty()method of a configuration object. It contains the name of the property, to which new data is added, and the value object that is added to this property (this may be an array or a list if multiple values are added).
setProperty()method triggers this event. The event object stores the name of the affected property and its new value.
clearProperty()method), an event of this type is fired. In this case the event object only stores the name of the removed property, the value is null.
|Constructor and Description|
Creates a new instance of
|Modifier and Type||Method and Description|
Returns the name of the affected property.
Returns the value of the affected property if available.
Returns the type of this event.
Returns a flag if this event was generated before or after an update.
public ConfigurationEvent(Object source, int type, String propertyName, Object propertyValue, boolean beforeUpdate)
ConfigurationEventand initializes it.
source- the event source
type- the event's type
propertyName- the name of the affected property
propertyValue- the value of the affected property
beforeUpdate- the before update flag
public String getPropertyName()
public Object getPropertyValue()
public int getType()
public boolean isBeforeUpdate()
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.