Example #1
0
 public Object invoke(ELContext elctx, Closure[] args) {
   Object v = getValue(elctx);
   if (v instanceof Closure) {
     return ((Closure) v).invoke(elctx, args);
   } else {
     return ELEngine.invokeTarget(elctx, v, args);
   }
 }
Example #2
0
 public EvaluationContext getContext(ELContext elctx) {
   if (this.context == null) {
     if (elctx == null) elctx = ELEngine.getCurrentELContext();
     this.context = new EvaluationContext(elctx, fm, vm);
   } else {
     if (elctx != null) {
       this.context.setELContext(elctx);
     }
   }
   return this.context;
 }