KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > commons > map > ApplicationMap


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5
6 package org.exoplatform.commons.map;
7
8 import javax.portlet.PortletContext;
9 import java.util.Enumeration JavaDoc;
10
11 /**
12  * @author Ove Ranheim (oranheim@users.sourceforge.net)
13  * @since Nov 6, 2003 6:32:49 PM
14  *
15  */

16 public class ApplicationMap extends AbstractMap
17 {
18     private PortletContext p_context;
19
20     public ApplicationMap( PortletContext context )
21     {
22         p_context = context;
23     }
24
25     protected Object JavaDoc getAttribute( String JavaDoc name )
26     {
27         return p_context.getAttribute( name );
28     }
29
30     protected void setAttribute( String JavaDoc name, Object JavaDoc value )
31     {
32         p_context.setAttribute( name, value );
33     }
34
35     protected void removeAttribute( String JavaDoc name )
36     {
37         p_context.removeAttribute( name );
38     }
39
40     protected Enumeration JavaDoc getAttributeNames()
41     {
42         return p_context.getAttributeNames();
43     }
44 }
45
Popular Tags