org.apache.avalon.excalibur.cache
Class AbstractCache

java.lang.Object
  |
  +--org.apache.avalon.excalibur.cache.AbstractCache
All Implemented Interfaces:
Cache, org.apache.avalon.framework.component.Component
Direct Known Subclasses:
DefaultCache

public abstract class AbstractCache
extends java.lang.Object
implements Cache

Author:
Eung-ju Park

Field Summary
protected  java.util.ArrayList m_listeners
           
 
Constructor Summary
AbstractCache()
           
 
Method Summary
 void addListener(CacheListener listener)
          Add listener.
protected  void notifyAdded(java.lang.Object key, java.lang.Object value)
           
protected  void notifyRemoved(java.lang.Object key, java.lang.Object value)
           
 void removeListener(CacheListener listener)
          Remove listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.excalibur.cache.Cache
capacity, clear, containsKey, get, put, remove, size
 

Field Detail

m_listeners

protected java.util.ArrayList m_listeners
Constructor Detail

AbstractCache

public AbstractCache()
Method Detail

addListener

public void addListener(CacheListener listener)
Description copied from interface: Cache
Add listener.
Specified by:
addListener in interface Cache
Following copied from interface: org.apache.avalon.excalibur.cache.Cache
Parameters:
listener - listener instance to add

removeListener

public void removeListener(CacheListener listener)
Description copied from interface: Cache
Remove listener.
Specified by:
removeListener in interface Cache
Following copied from interface: org.apache.avalon.excalibur.cache.Cache
Parameters:
listener - listener instance to remove

notifyAdded

protected void notifyAdded(java.lang.Object key,
                           java.lang.Object value)

notifyRemoved

protected void notifyRemoved(java.lang.Object key,
                             java.lang.Object value)


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.