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