Package org.apache.myfaces.extensions.cdi.message.impl.spi

Examples of org.apache.myfaces.extensions.cdi.message.impl.spi.SimpleELContext


    private synchronized String interpolateNamedArguments(MessageContext messageContext,
                                                          String messageDescriptor,
                                                          List<NamedArgument> namedArguments)
    {
        ExpressionFactory factory = this.elProvider.createExpressionFactory();
        SimpleELContext elContext = this.elProvider.createELContext(this.elProvider.createELResolver());

        for (NamedArgument argument : namedArguments)
        {
            Serializable value = argument.getValue();
            Class valueType = value != null ? value.getClass() : Object.class;
            elContext.setVariable(argument.getName(), factory.createValueExpression(value, valueType));
        }

        Matcher matcher = MESSAGE_ARGS_PATTERN.matcher(messageDescriptor);
        StringBuffer buffer = new StringBuffer();
        while (matcher.find())
View Full Code Here


    private synchronized String interpolateNamedArguments(MessageContext messageContext,
                                                          String messageDescriptor,
                                                          List<NamedArgument> namedArguments)
    {
        ExpressionFactory factory = this.elProvider.createExpressionFactory();
        SimpleELContext elContext = this.elProvider.createELContext(this.elProvider.createELResolver());

        for (NamedArgument argument : namedArguments)
        {
            Serializable value = argument.getValue();
            Class valueType = value != null ? value.getClass() : Object.class;
            elContext.setVariable(argument.getName(), factory.createValueExpression(value, valueType));
        }

        Matcher matcher = MESSAGE_ARGS_PATTERN.matcher(messageDescriptor);
        StringBuffer buffer = new StringBuffer();
        while (matcher.find())
View Full Code Here

    private synchronized String interpolateNamedArguments(MessageContext messageContext,
                                                          String messageDescriptor,
                                                          List<NamedArgument> namedArguments)
    {
        ExpressionFactory factory = this.elProvider.createExpressionFactory();
        SimpleELContext elContext = this.elProvider.createELContext(this.elProvider.createELResolver());

        for (NamedArgument argument : namedArguments)
        {
            Serializable value = argument.getValue();
            Class valueType = value != null ? value.getClass() : Object.class;
            elContext.setVariable(argument.getName(), factory.createValueExpression(value, valueType));
        }

        Matcher matcher = MESSAGE_ARGS_PATTERN.matcher(messageDescriptor);
        StringBuffer buffer = new StringBuffer();
        while (matcher.find())
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.cdi.message.impl.spi.SimpleELContext

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.