KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > util > Attachments


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.util;
10
11 import java.util.Collections JavaDoc;
12 import java.util.HashMap JavaDoc;
13 import java.util.Map JavaDoc;
14
15 /**
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.1.1.1 $
18  */

19 public class Attachments
20 {
21
22    private Map JavaDoc content = Collections.synchronizedMap(new HashMap JavaDoc());
23
24    public Object JavaDoc get(Object JavaDoc key)
25    {
26       return content.get(key);
27    }
28
29    public void set(Object JavaDoc key, Object JavaDoc value)
30    {
31       content.put(key, value);
32    }
33
34    public void remove(Object JavaDoc key)
35    {
36       content.remove(key);
37    }
38 }
39
Popular Tags