1 16 package org.apache.myfaces.context.servlet; 17 18 import java.util.Enumeration ; 19 20 import javax.servlet.ServletContext ; 21 22 23 40 public class ApplicationMap extends AbstractAttributeMap 41 { 42 final ServletContext _servletContext; 43 44 ApplicationMap(ServletContext servletContext) 45 { 46 _servletContext = servletContext; 47 } 48 49 protected Object getAttribute(String key) 50 { 51 return _servletContext.getAttribute(key); 52 } 53 54 protected void setAttribute(String key, Object value) 55 { 56 _servletContext.setAttribute(key, value); 57 } 58 59 protected void removeAttribute(String key) 60 { 61 _servletContext.removeAttribute(key); 62 } 63 64 protected Enumeration getAttributeNames() 65 { 66 return _servletContext.getAttributeNames(); 67 } 68 } 69 | Popular Tags |