1 /* 2 * Copyright (C) The Apache Software Foundation. All rights reserved. 3 * 4 * This software is published under the terms of the Apache Software License 5 * version 1.1, a copy of which has been included with this distribution in 6 * the LICENSE.txt file. 7 */ 8 package org.apache.avalon.excalibur.cache; 9 10 import java.util.EventListener; 11 12 /** 13 * Receive notifications about <code>Cache</code>. 14 * 15 * @author <a HREF="mailto:colus@apache.org">Eung-ju Park</a> 16 */ 17 public interface CacheListener 18 extends EventListener 19 { 20 /** 21 * Added new item. 22 */ 23 void added( CacheEvent event ); 24 25 /** 26 * Removed item. 27 */ 28 void removed( CacheEvent event ); 29 } 30