1 29 30 package com.caucho.el; 31 32 import javax.el.*; 33 import java.util.Map ; 34 35 38 public class EnvironmentContext extends ELContext { 39 private final StackELResolver _elResolver = new StackELResolver(); 40 41 44 public EnvironmentContext() 45 { 46 this(Thread.currentThread().getContextClassLoader()); 47 } 48 49 52 public EnvironmentContext(ClassLoader loader) 53 { 54 _elResolver.push(new ArrayELResolver()); 55 _elResolver.push(new MapELResolver()); 56 _elResolver.push(new ListELResolver()); 57 _elResolver.push(new BeanELResolver()); 58 _elResolver.push(new SystemPropertiesResolver()); 59 60 _elResolver.push(EnvironmentELResolver.create(loader)); 61 } 62 63 66 public EnvironmentContext(Map <String ,Object > map) 67 { 68 this(); 69 70 _elResolver.push(new MapVariableResolver(map)); 71 } 72 73 public ELResolver getELResolver() 74 { 75 return _elResolver; 76 } 77 78 public FunctionMapper getFunctionMapper() 79 { 80 return null; 81 } 82 83 public VariableMapper getVariableMapper() 84 { 85 return null; 86 } 87 } 88 | Popular Tags |