1 33 34 37 package com.icesoft.faces.context; 38 39 import javax.servlet.ServletContext ; 40 import java.util.Enumeration ; 41 42 public class ApplicationMap extends AbstractAttributeMap { 43 44 final ServletContext servletContext; 45 46 public ApplicationMap(ServletContext servletContext) { 47 this.servletContext = servletContext; 48 } 49 50 53 protected Object getAttribute(String key) { 54 return servletContext.getAttribute(key); 55 } 56 57 60 protected void setAttribute(String key, Object value) { 61 servletContext.setAttribute(key, value); 62 } 63 64 67 protected void removeAttribute(String key) { 68 servletContext.removeAttribute(key); 69 } 70 71 74 protected Enumeration getAttributeNames() { 75 return servletContext.getAttributeNames(); 76 } 77 78 } 79 | Popular Tags |