1 17 18 package org.apache.el.lang; 19 20 import javax.el.ELContext; 21 import javax.el.ELResolver; 22 import javax.el.FunctionMapper; 23 import javax.el.VariableMapper; 24 25 public final class EvaluationContext extends ELContext { 26 27 private final ELContext elContext; 28 29 private final FunctionMapper fnMapper; 30 31 private final VariableMapper varMapper; 32 33 public EvaluationContext(ELContext elContext, FunctionMapper fnMapper, 34 VariableMapper varMapper) { 35 this.elContext = elContext; 36 this.fnMapper = fnMapper; 37 this.varMapper = varMapper; 38 } 39 40 public ELContext getELContext() { 41 return this.elContext; 42 } 43 44 public FunctionMapper getFunctionMapper() { 45 return this.fnMapper; 46 } 47 48 public VariableMapper getVariableMapper() { 49 return this.varMapper; 50 } 51 52 public Object getContext(Class key) { 53 return this.elContext.getContext(key); 54 } 55 56 public ELResolver getELResolver() { 57 return this.elContext.getELResolver(); 58 } 59 60 public boolean isPropertyResolved() { 61 return this.elContext.isPropertyResolved(); 62 } 63 64 public void putContext(Class key, Object contextObject) { 65 this.elContext.putContext(key, contextObject); 66 } 67 68 public void setPropertyResolved(boolean resolved) { 69 this.elContext.setPropertyResolved(resolved); 70 } 71 } 72 | Popular Tags |