1 16 package org.apache.myfaces.context.portlet; 17 18 import java.util.Enumeration ; 19 import javax.portlet.PortletContext; 20 21 import org.apache.myfaces.context.servlet.AbstractAttributeMap; 22 23 24 34 public class ApplicationMap extends AbstractAttributeMap 35 { 36 final PortletContext _portletContext; 37 38 ApplicationMap(PortletContext portletContext) 39 { 40 _portletContext = portletContext; 41 } 42 43 protected Object getAttribute(String key) 44 { 45 return _portletContext.getAttribute(key); 46 } 47 48 protected void setAttribute(String key, Object value) 49 { 50 _portletContext.setAttribute(key, value); 51 } 52 53 protected void removeAttribute(String key) 54 { 55 _portletContext.removeAttribute(key); 56 } 57 58 protected Enumeration getAttributeNames() 59 { 60 return _portletContext.getAttributeNames(); 61 } 62 } 63 | Popular Tags |