org.norther.tammi.acorn.trace
Class TraceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.norther.tammi.acorn.trace.TraceEvent
All Implemented Interfaces:
Serializable

public class TraceEvent
extends EventObject

Events of this type are sent to an object that implements the TraceListener interface when the corresponding trace has been modified.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TraceEvent(Traceable trace)
          Constructs a new event.
TraceEvent(Traceable trace, Object key)
          Constructs a new event with the specified resource.
 
Method Summary
 Object getResourceKey()
          Gets the key of an optional resource.
 Traceable getTraceable()
          Gets the traceable.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TraceEvent

public TraceEvent(Traceable trace)
Constructs a new event.

Parameters:
trace - the source trace.

TraceEvent

public TraceEvent(Traceable trace,
                  Object key)
Constructs a new event with the specified resource.

Parameters:
trace - the source trace.
key - the resource key.
Method Detail

getTraceable

public Traceable getTraceable()
Gets the traceable.

Returns:
the traceable.

getResourceKey

public Object getResourceKey()
Gets the key of an optional resource.

Returns:
the resource key or null.


Copyright © 2004 The Norther Organization. All rights reserved.