1 17 package org.apache.jasper.el; 18 19 import java.util.Locale ; 20 21 import javax.el.ELContext; 22 import javax.el.ELResolver; 23 import javax.el.FunctionMapper; 24 import javax.el.VariableMapper; 25 26 31 public final class ELContextWrapper extends ELContext { 32 33 private final ELContext target; 34 private final FunctionMapper fnMapper; 35 36 public ELContextWrapper(ELContext target, FunctionMapper fnMapper) { 37 this.target = target; 38 this.fnMapper = fnMapper; 39 } 40 41 public ELResolver getELResolver() { 42 return this.target.getELResolver(); 43 } 44 45 public FunctionMapper getFunctionMapper() { 46 if (this.fnMapper != null) return this.fnMapper; 47 return this.target.getFunctionMapper(); 48 } 49 50 public VariableMapper getVariableMapper() { 51 return this.target.getVariableMapper(); 52 } 53 54 public Object getContext(Class key) { 55 return this.target.getContext(key); 56 } 57 58 public Locale getLocale() { 59 return this.target.getLocale(); 60 } 61 62 public boolean isPropertyResolved() { 63 return this.target.isPropertyResolved(); 64 } 65 66 public void putContext(Class key, Object contextObject) throws NullPointerException { 67 this.target.putContext(key, contextObject); 68 } 69 70 public void setLocale(Locale locale) { 71 this.target.setLocale(locale); 72 } 73 74 public void setPropertyResolved(boolean resolved) { 75 this.target.setPropertyResolved(resolved); 76 } 77 78 } 79 | Popular Tags |