AbstractExpressionTransformer (Mule ESB 2.2.1 API)
Keywords: org.mule.expression.transformers.AbstractExpressionTransformer class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.expression.transformers
Class AbstractExpressionTransformer

    java.lang.Object
      org.mule.transformer.AbstractTransformer
          org.mule.transformer.AbstractMessageAwareTransformer
              org.mule.expression.transformers.AbstractExpressionTransformer

All Implemented Interfaces:
  MuleContextAware, Initialisable, NamedObject, BaseTransformer, Transformer

Direct Known Subclasses:
  BeanBuilderTransformer, ExpressionTransformer

    public abstract class AbstractExpressionTransformer

extends AbstractMessageAwareTransformer
implements MuleContextAware

This transformer will evaluate one or more expressions on the current message and return the results as an Array. If only one expression is defined it will return the object returned from the expression.

You can use expressions to extract

- headers (single, map or list)
- attachments (single, map or list)
- payload
- xpath
- groovy
- bean

and more.

This transformer provides a very powerful way to pull different bits of information from the message and pass them to the service.

Field Summary
`protected List<ExpressionArgument>` | `arguments`
`protected static MuleContext` | `muleContext`

Fields inherited from class org.mule.transformer.AbstractTransformer
`DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes`

Fields inherited from interface org.mule.api.lifecycle.Initialisable
`PHASE_NAME`

Constructor Summary
`AbstractExpressionTransformer()`

Method Summary
`void` | `addArgument(ExpressionArgument argument)`
`List<ExpressionArgument>` | `getArguments()`
`void` | `initialise()` Template method were deriving classes can do any initialisation after the properties have been set on this transformer
`boolean` | `removeArgument(ExpressionArgument argument)`
`void` | `setArguments(List<ExpressionArgument> arguments)`
`void` | `setMuleContext(MuleContext context)`

Methods inherited from class org.mule.transformer.AbstractMessageAwareTransformer
`doTransform, isSourceTypeSupported, transform`

Methods inherited from class org.mule.transformer.AbstractTransformer
`checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### arguments

    protected List<ExpressionArgument> arguments

### muleContext

    protected static MuleContext muleContext

Constructor Detail

### AbstractExpressionTransformer

    public AbstractExpressionTransformer()

Method Detail

### setMuleContext

    public void setMuleContext(MuleContext context)

  Specified by:
    `setMuleContext` in interface `MuleContextAware`

### addArgument

    public void addArgument(ExpressionArgument argument)

### removeArgument

    public boolean removeArgument(ExpressionArgument argument)

### initialise

    public void initialise()
                    throws InitialisationException

  Template method were deriving classes can do any initialisation after the properties have been set on this transformer

  Specified by:
    `initialise` in interface `Initialisable`
  Overrides:
    `initialise` in class `AbstractTransformer`
  Throws:
    `InitialisationException`
    `RecoverableException` - if an error occurs that can be recovered from

### getArguments

    public List<ExpressionArgument> getArguments()

### setArguments

    public void setArguments(List<ExpressionArgument> arguments)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.