All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.expression.VariableExpressionEnricher Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
/*
 * $Id: VariableExpressionEnricher.java 20416 2010-12-01 12:27:32Z dfeist $
 * --------------------------------------------------------------------------------------
 * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */

package org.mule.expression;

import org.mule.api.MuleMessage;
import org.mule.api.expression.ExpressionEnricher;
import org.mule.api.transport.PropertyScope;

public class VariableExpressionEnricher implements ExpressionEnricher
{

    public static final String NAME = "variable";

    public void enrich(String expression, MuleMessage message, Object object)
    {
        message.setProperty(expression, object, PropertyScope.INVOCATION);
    }

    public String getName()
    {
        return NAME;
    }

    public void setName(String name)
    {
        throw new UnsupportedOperationException();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy