org.mule.devkit.processor
Class ExpressionEvaluatorSupport

java.lang.Object
  extended by org.mule.devkit.processor.ExpressionEvaluatorSupport
Direct Known Subclasses:
AbstractExpressionEvaluator, DevkitBasedMessageProcessor, ManagedAccessTokenProcessInterceptor, RefreshTokenProcessInterceptor

public abstract class ExpressionEvaluatorSupport
extends Object


Constructor Summary
ExpressionEvaluatorSupport()
           
 
Method Summary
protected  void computeClassHierarchy(Class clazz, List classes)
          Get all superclasses and interfaces recursively.
protected  Object evaluate(TemplateParser.PatternInfo patternInfo, ExpressionManager expressionManager, MuleMessage muleMessage, Object source)
           
protected  Object evaluateAndTransform(MuleContext muleContext, MuleEvent event, Type expectedType, String expectedMimeType, Object source)
           
protected  Object evaluateAndTransform(MuleContext muleContext, MuleMessage muleMessage, Type expectedType, String expectedMimeType, Object source)
           
protected  String getAccessTokenId(MuleEvent event, MessageProcessor processor, OAuth2Manager<?> oauthManager)
           
protected  boolean isAssignableFrom(Type expectedType, Class clazz)
           
protected  boolean isList(Type type)
           
protected  boolean isListClass(Class clazz)
          Checks whether the specified class parameter is an instance of List
protected  boolean isMap(Type type)
           
protected  boolean isMapClass(Class clazz)
          Checks whether the specified class parameter is an instance of Map
protected  Object transform(MuleContext muleContext, MuleEvent event, Type expectedType, String expectedMimeType, Object source)
           
protected  Object transform(MuleContext muleContext, MuleMessage message, Type expectedType, String expectedMimeType, Object source)
           
protected  Object transform(MuleMessage muleMessage, Type expectedType, Object source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionEvaluatorSupport

public ExpressionEvaluatorSupport()
Method Detail

computeClassHierarchy

protected void computeClassHierarchy(Class clazz,
                                     List classes)
Get all superclasses and interfaces recursively.

Parameters:
classes - List of classes to which to add all found super classes and interfaces.
clazz - The class to start the search with.

isListClass

protected boolean isListClass(Class clazz)
Checks whether the specified class parameter is an instance of List

Parameters:
clazz - Class to check.
Returns:

isMapClass

protected boolean isMapClass(Class clazz)
Checks whether the specified class parameter is an instance of Map

Parameters:
clazz - Class to check.
Returns:

isList

protected boolean isList(Type type)

isMap

protected boolean isMap(Type type)

isAssignableFrom

protected boolean isAssignableFrom(Type expectedType,
                                   Class clazz)

evaluate

protected Object evaluate(TemplateParser.PatternInfo patternInfo,
                          ExpressionManager expressionManager,
                          MuleMessage muleMessage,
                          Object source)

evaluateAndTransform

protected Object evaluateAndTransform(MuleContext muleContext,
                                      MuleEvent event,
                                      Type expectedType,
                                      String expectedMimeType,
                                      Object source)
                               throws TransformerException,
                                      TransformerMessagingException
Throws:
TransformerException
TransformerMessagingException

evaluateAndTransform

protected Object evaluateAndTransform(MuleContext muleContext,
                                      MuleMessage muleMessage,
                                      Type expectedType,
                                      String expectedMimeType,
                                      Object source)
                               throws TransformerException,
                                      TransformerMessagingException
Throws:
TransformerException
TransformerMessagingException

transform

protected Object transform(MuleMessage muleMessage,
                           Type expectedType,
                           Object source)
                    throws TransformerException
Throws:
TransformerException

transform

protected Object transform(MuleContext muleContext,
                           MuleEvent event,
                           Type expectedType,
                           String expectedMimeType,
                           Object source)
                    throws TransformerException,
                           TransformerMessagingException
Throws:
TransformerException
TransformerMessagingException

transform

protected Object transform(MuleContext muleContext,
                           MuleMessage message,
                           Type expectedType,
                           String expectedMimeType,
                           Object source)
                    throws TransformerException,
                           TransformerMessagingException
Throws:
TransformerException
TransformerMessagingException

getAccessTokenId

protected String getAccessTokenId(MuleEvent event,
                                  MessageProcessor processor,
                                  OAuth2Manager<?> oauthManager)
                           throws org.mule.common.connection.exception.UnableToAcquireConnectionException
Throws:
org.mule.common.connection.exception.UnableToAcquireConnectionException


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.