Package org.mule.api.el

Examples of org.mule.api.el.ExpressionLanguageFunction


            }
            catch (Exception e)
            {
                //continue - test will fail.
            }
            context.declareFunction("f", new ExpressionLanguageFunction()
            {
                @Override
                public Object call(Object[] params, ExpressionLanguageContext context)
                {
                    return "called param[0]=" + params[0] + ",param[1]=" + params[1] + ",app.name="
                           + ((AppContext) context.getVariable("app")).getName();
                }
            });
            context.declareFunction("muleContext", new ExpressionLanguageFunction()
            {
                @Override
                public Object call(Object[] params, ExpressionLanguageContext context)
                {
                    return context.getVariable(MVELExpressionLanguageContext.MULE_CONTEXT_INTERNAL_VARIABLE);
                }
            });
            context.declareFunction("muleMessage", new ExpressionLanguageFunction()
            {
                @Override
                public Object call(Object[] params, ExpressionLanguageContext context)
                {
                    return context.getVariable(MVELExpressionLanguageContext.MULE_MESSAGE_INTERNAL_VARIABLE);
View Full Code Here

TOP

Related Classes of org.mule.api.el.ExpressionLanguageFunction

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.