org.jcreme.caches
Class CacheEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.jcreme.caches.CacheEvent
All Implemented Interfaces:
java.io.Serializable

public class CacheEvent
extends java.util.EventObject

Instances of this class report modifications in the contents of a cache. Namely elements added and removed from the cache.

Version:
$Revision: 1.2 $
Author:
$Author: dbregeon $
See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CacheEvent(java.lang.Object source, java.lang.Object element)
          Creates new CacheEvent
 
Method Summary
 java.lang.Object getElement()
          Enables access to the element that provoked the event.
 
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
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

CacheEvent

public CacheEvent(java.lang.Object source,
                  java.lang.Object element)
Creates new CacheEvent

Parameters:
source - the cache that sent the event.
element - the object that provoked the event.
Method Detail

getElement

public java.lang.Object getElement()
Enables access to the element that provoked the event.

Returns:
the object which status changed in the cache.


Copyright 2006 null. All Rights Reserved.