KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > cache > CacheEvent


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.EventObject JavaDoc;
11
12 /**
13  * This is the class used to deliver notifications about <code>Cache</code>.
14  *
15  * @author <a HREF="mailto:colus@apache.org">Eung-ju Park</a>
16  */

17 public class CacheEvent
18     extends EventObject JavaDoc
19 {
20     private Object JavaDoc m_key;
21     private Object JavaDoc m_value;
22
23     public CacheEvent( final Cache cache,
24                        final Object JavaDoc key, final Object JavaDoc value )
25     {
26         super( cache );
27         m_key = key;
28         m_value = value;
29     }
30
31     public Object JavaDoc getKey()
32     {
33         return m_key;
34     }
35
36     public Object JavaDoc getValue()
37     {
38         return m_value;
39     }
40 }
41
Popular Tags