de.fhg.igd.logging
Class ConfigurationChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byde.fhg.igd.logging.ConfigurationChangeEvent
All Implemented Interfaces:
Serializable

public class ConfigurationChangeEvent
extends EventObject

Instances of this EventObject will be fired to every registered ConfigurationChangeListener. It contains the type of operation that has been carried out on the LoggingConfiguration, as well as further information about the affected property.

Notice: Originally, the ConfigurationChange event mechanism was meant to be used by a GUI implementation, which is on the To-Do list. Hence, even though the mechanism is fully operational, it is not yet being used by the Logging Framework itself.

Version:
"$Id: ConfigurationChangeEvent.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Matthias Pressfreund
See Also:
Serialized Form

Field Summary
protected  Object key_
          The affected property key
protected  Object newval_
          The property value after the operation
protected  Object oldval_
          The property value before the operation
protected  int type_
          The operation type
static int TYPE_VALUE_ADDED
          The operation type in case some value has been added
static int TYPE_VALUE_CHANGED
          The operation type in case some value has been changed
static int TYPE_VALUE_REMOVED
          The operation type in case some value has been removed
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConfigurationChangeEvent(Object source, Object key, Object oldval, Object newval)
          Create a ConfigurationChangeEvent.
 
Method Summary
 Object getKey()
           
 Object getNewValue()
           
 Object getOldValue()
           
 int getType()
           
 String toString()
           
 
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
 

Field Detail

TYPE_VALUE_ADDED

public static final int TYPE_VALUE_ADDED
The operation type in case some value has been added

See Also:
Constant Field Values

TYPE_VALUE_CHANGED

public static final int TYPE_VALUE_CHANGED
The operation type in case some value has been changed

See Also:
Constant Field Values

TYPE_VALUE_REMOVED

public static final int TYPE_VALUE_REMOVED
The operation type in case some value has been removed

See Also:
Constant Field Values

type_

protected int type_
The operation type


key_

protected Object key_
The affected property key


oldval_

protected Object oldval_
The property value before the operation


newval_

protected Object newval_
The property value after the operation

Constructor Detail

ConfigurationChangeEvent

public ConfigurationChangeEvent(Object source,
                                Object key,
                                Object oldval,
                                Object newval)
Create a ConfigurationChangeEvent.

Parameters:
source - The object where this event has been created
key - The affected property key
oldval - The old property value
newval - The new property value
Method Detail

getType

public int getType()

getKey

public Object getKey()

getOldValue

public Object getOldValue()

getNewValue

public Object getNewValue()

toString

public String toString()


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.