Package javax.el

Examples of javax.el.ELResolver


    @Override
    public void setValue(EvaluationContext ctx, Object value)
            throws ELException {
        Target t = getTarget(ctx);
        ctx.setPropertyResolved(false);
        ELResolver resolver = ctx.getELResolver();

        // coerce to the expected type
        Class<?> targetClass = resolver.getType(ctx, t.base, t.property);
        if (COERCE_TO_ZERO == true
                || !isAssignable(value, targetClass)) {
            resolver.setValue(ctx, t.base, t.property,
                    ELSupport.coerceToType(value, targetClass));
        } else {
            resolver.setValue(ctx, t.base, t.property, value);
        }
        if (!ctx.isPropertyResolved()) {
            throw new PropertyNotFoundException(MessageFactory.get(
                    "error.resolver.unhandled", t.base, t.property));           
        }
View Full Code Here


            }
        });
        service.scheduleWithFixedDelay(new ConversationCleaner(), delay, delay, TimeUnit.MILLISECONDS);

        ELAdaptor elAdaptor = getWebBeansContext().getService(ELAdaptor.class);
        ELResolver resolver = elAdaptor.getOwbELResolver();
        //Application is configured as JSP
        if(getWebBeansContext().getOpenWebBeansConfiguration().isJspApplication())
        {
            logger.log(Level.FINE, "Application is configured as JSP. Adding EL Resolver.");
           
View Full Code Here

      Class[] paramTypes) throws ELException {
    return ReflectionUtil.getMethodInfo(base, this.image, paramTypes);
  }

  public Class getType(Object base, EvaluationContext ctx) throws ELException {
    ELResolver resolver = ctx.getELResolver();
    ctx.setPropertyResolved(false);
    return resolver.getType(ctx, base, this.image);
  }
View Full Code Here

  }

  public Object getTarget(Object base, EvaluationContext ctx)
      throws ELException {
    if (base == null) return null;
    ELResolver resolver = ctx.getELResolver();
    ctx.setPropertyResolved(false);
    Object r = resolver.getValue(ctx, base, this.image);
    if (r == null) {
      throw new PropertyNotFoundException(MessageFactory.get(
          "error.unreachable.property", base.getClass().getName(),
          this.image));
    }
View Full Code Here

  public Object getValue(Object base, EvaluationContext ctx)
      throws ELException {
    if (base == null)
      return null;
    ELResolver resolver = ctx.getELResolver();
    ctx.setPropertyResolved(false);
    return resolver.getValue(ctx, base, this.image);
  }
View Full Code Here

        paramValues);
  }

  public boolean isReadOnly(Object base, EvaluationContext ctx)
      throws ELException {
    ELResolver resolver = ctx.getELResolver();
    ctx.setPropertyResolved(false);
    return resolver.isReadOnly(ctx, base, this.image);
  }
View Full Code Here

    return resolver.isReadOnly(ctx, base, this.image);
  }

  public void setValue(Object base, EvaluationContext ctx, Object value)
      throws ELException {
    ELResolver resolver = ctx.getELResolver();
    ctx.setPropertyResolved(false);
    resolver.setValue(ctx, base, this.image, value);
  }
View Full Code Here

  public MethodInfo getMethodInfo(Object base, EvaluationContext ctx, Class[] paramTypes) throws ELException {
    return ReflectionUtil.getMethodInfo(base, this.getValue(ctx), paramTypes);
  }

  public Class getType(Object base, EvaluationContext ctx) throws ELException {
    ELResolver resolver = ctx.getELResolver();
    ctx.setPropertyResolved(false);
    return resolver.getType(ctx, base, this.getValue(ctx));
  }
View Full Code Here

  }
 
  public Object getTarget(Object base, EvaluationContext ctx) throws ELException {
    if (base == null) return null;
   
    ELResolver resolver = ctx.getELResolver();
    ctx.setPropertyResolved(false);
    Object p = this.getValue(ctx);
    Object r = resolver.getValue(ctx, base, p);
    if (r == null) {
      throw new PropertyNotFoundException(MessageFactory.get(
          "error.unreachable.property", base.getClass().getName(),
          p));
    }
View Full Code Here

  }

  public Object getValue(Object base, EvaluationContext ctx) throws ELException {
    if (base == null) return null;
   
    ELResolver resolver = ctx.getELResolver();
    ctx.setPropertyResolved(false);
    return resolver.getValue(ctx, base, this.getValue(ctx));
  }
View Full Code Here

TOP

Related Classes of javax.el.ELResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.