1 16 17 18 package org.apache.myfaces.context.portlet; 19 20 import java.util.Enumeration ; 21 22 import javax.portlet.PortletContext; 23 import org.apache.myfaces.context.servlet.AbstractAttributeMap; 24 25 26 36 public class InitParameterMap extends AbstractAttributeMap 37 { 38 final PortletContext _portletContext; 39 40 InitParameterMap(PortletContext portletContext) 41 { 42 _portletContext = portletContext; 43 } 44 45 protected Object getAttribute(String key) 46 { 47 return _portletContext.getInitParameter(key); 48 } 49 50 protected void setAttribute(String key, Object value) 51 { 52 throw new UnsupportedOperationException ( 53 "Cannot set PortletContext InitParameter"); 54 } 55 56 protected void removeAttribute(String key) 57 { 58 throw new UnsupportedOperationException ( 59 "Cannot remove PortletContext InitParameter"); 60 } 61 62 protected Enumeration getAttributeNames() 63 { 64 return _portletContext.getInitParameterNames(); 65 } 66 67 public boolean equals(Object o) { 68 boolean retValue; 69 70 retValue = super.equals(o); 71 return retValue; 72 } 73 74 public int hashCode() { 75 int retValue; 76 77 retValue = super.hashCode(); 78 return retValue; 79 } 80 81 } 82 | Popular Tags |