Package com.sun.el.lang

Examples of com.sun.el.lang.ExpressionBuilder$SoftConcurrentHashMap


            Class[] expectedParamTypes) {
        if (expectedParamTypes == null) {
            throw new NullPointerException(MessageFactory
                    .get("error.method.nullParms"));
        }
        ExpressionBuilder builder = new ExpressionBuilder(expression, context);
        return builder.createMethodExpression(expectedReturnType,
                expectedParamTypes);
    }
View Full Code Here


            String expression, Class expectedType) {
        if (expectedType == null) {
            throw new NullPointerException(MessageFactory
                    .get("error.value.expectedType"));
        }
        ExpressionBuilder builder = new ExpressionBuilder(expression, context);
        return builder.createValueExpression(expectedType);
    }
View Full Code Here

    }

    public MethodExpression createMethodExpression(ELContext context,
            String expression, Class expectedReturnType,
            Class[] expectedParamTypes) {
        ExpressionBuilder builder = new ExpressionBuilder(expression, context);
        MethodExpression me = builder.createMethodExpression(expectedReturnType,
                expectedParamTypes);
        if (expectedParamTypes == null && !me.isParametersProvided()) {
            throw new NullPointerException(MessageFactory
                    .get("error.method.nullParms"));
        }
View Full Code Here

            String expression, Class expectedType) {
        if (expectedType == null) {
            throw new NullPointerException(MessageFactory
                    .get("error.value.expectedType"));
        }
        ExpressionBuilder builder = new ExpressionBuilder(expression, context);
        return builder.createValueExpression(expectedType);
    }
View Full Code Here

    }
    return components;
  }

  private ValueExpression newValueExpression(String propery) {
    return new ExpressionBuilder("#{bean." + propery + "}", this.context.getELContext())
        .createValueExpression(Object.class);
  }
View Full Code Here

    assertThat(property.getObjectType(), is(equalTo((Class) NestedBean.class)));
  }

  @Test
  public void shouldGetNullPropertyIfMissing() throws Exception {
    ValueExpression valueExpression = new ExpressionBuilder("#{bean}", this.context)
        .createValueExpression(Object.class);
    Property property = ELUtils.getProperty(valueExpression, this.context);
    assertThat(property, is(nullValue()));
  }
View Full Code Here

    Property property = ELUtils.getProperty(valueExpression, this.context);
    assertThat(property, is(nullValue()));
  }

  private ValueExpression newValueExpression(String propery, Class<?> expectedType) {
    return new ExpressionBuilder("#{bean." + propery + "}", this.context).createValueExpression(expectedType);
  }
View Full Code Here

TOP

Related Classes of com.sun.el.lang.ExpressionBuilder$SoftConcurrentHashMap

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.