KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > management > browser > model > service > CacheService


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.management.browser.model.service;
8
9 import java.io.Serializable JavaDoc;
10 import java.util.Enumeration JavaDoc;
11
12 /**
13  * Description of the Class
14  *
15  * @author Laurent Etiemble
16  * @version $Revision: 1.6 $
17  * @todo Javadoc to complete
18  */

19 public interface CacheService extends Serializable JavaDoc
20 {
21    /** Description of the Field */
22    public final int DOMAIN_TYPE = 0;
23    /** Description of the Field */
24    public final int RESOURCE_TYPE = 1;
25
26
27    /**
28     * Adds a feature to the Entity attribute of the CacheService object
29     *
30     * @param type Description of the Parameter
31     * @param key Description of the Parameter
32     * @param value Description of the Parameter
33     */

34    public void add(int type, Object JavaDoc key, Object JavaDoc value);
35
36
37    /**
38     * Description of the Method
39     *
40     * @param type Description of the Parameter
41     * @param key Description of the Parameter
42     */

43    public void remove(int type, Object JavaDoc key);
44
45
46    /**
47     * Description of the Method
48     *
49     * @param type Description of the Parameter
50     * @return Description of the Return Value
51     */

52    public Enumeration JavaDoc keys(int type);
53
54
55    /** Description of the Method */
56    public void clear();
57
58
59    /**
60     * Description of the Method
61     *
62     * @param type Description of the Parameter
63     * @param key Description of the Parameter
64     * @return Description of the Return Value
65     */

66    public Object JavaDoc get(int type, Object JavaDoc key);
67 }
68
Popular Tags