View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.expression;
8   
9   import org.mule.api.MuleMessage;
10  import org.mule.api.expression.ExpressionEnricher;
11  import org.mule.api.transport.PropertyScope;
12  
13  public class VariableExpressionEnricher implements ExpressionEnricher
14  {
15  
16      public static final String NAME = "variable";
17  
18      public void enrich(String expression, MuleMessage message, Object object)
19      {
20          message.setProperty(expression, object, PropertyScope.INVOCATION);
21      }
22  
23      public String getName()
24      {
25          return NAME;
26      }
27  
28      public void setName(String name)
29      {
30          throw new UnsupportedOperationException();
31      }
32  
33  }