KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > coldcore > coloradoftp > core > CoreStorage


1 package com.coldcore.coloradoftp.core;
2
3 import java.util.Set JavaDoc;
4
5 /**
6  * Global data storage.
7  *
8  * This class exists in a single instance and is used to store and exchange global information.
9  * For example it may contain a cache for a filesystem, queue of occured errors or any other
10  * arbitrary objects.
11  *
12  *
13  * ColoradoFTP - The Open Source FTP Server (http://cftp.coldcore.com)
14  */

15 public interface CoreStorage {
16
17   /** Set attribute
18    * @param key Key
19    * @param value Value
20    */

21   public void setAttribute(String JavaDoc key, Object JavaDoc value);
22
23
24   /** Get attribute
25    * @param key Key
26    * @return Attribute value
27    */

28   public Object JavaDoc getAttribute(String JavaDoc key);
29
30
31   /** Remove attribute
32    * @param key Key
33    */

34   public void removeAttribute(String JavaDoc key);
35
36
37   /** Get names of all attributes
38    * @return Set with names
39    */

40   public Set JavaDoc<String JavaDoc> getAttributeNames();
41 }
42
Popular Tags