org.apache.camel.bam
Class ProcessExpressionSupport<T>

java.lang.Object
  extended by org.apache.camel.bam.ProcessExpressionSupport<T>
All Implemented Interfaces:
org.apache.camel.Expression<org.apache.camel.Exchange>

public abstract class ProcessExpressionSupport<T>
extends Object
implements org.apache.camel.Expression<org.apache.camel.Exchange>

Version:
$Revision: $

Field Summary
static String PROCESS_PROPERTY
           
 
Constructor Summary
protected ProcessExpressionSupport(Class<T> type)
           
 
Method Summary
 Object evaluate(org.apache.camel.Exchange exchange)
           
protected abstract  Object evaluate(org.apache.camel.Exchange exchange, T processEntity)
           
static
<T> T
getProcessEntity(org.apache.camel.Exchange exchange, Class<T> type)
           
static
<T> void
storeProcessEntity(org.apache.camel.Exchange exchange, T processEntity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROCESS_PROPERTY

public static final String PROCESS_PROPERTY
See Also:
Constant Field Values
Constructor Detail

ProcessExpressionSupport

protected ProcessExpressionSupport(Class<T> type)
Method Detail

getProcessEntity

public static <T> T getProcessEntity(org.apache.camel.Exchange exchange,
                                     Class<T> type)

storeProcessEntity

public static <T> void storeProcessEntity(org.apache.camel.Exchange exchange,
                                          T processEntity)

evaluate

public Object evaluate(org.apache.camel.Exchange exchange)
Specified by:
evaluate in interface org.apache.camel.Expression<org.apache.camel.Exchange>

evaluate

protected abstract Object evaluate(org.apache.camel.Exchange exchange,
                                   T processEntity)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.