public final class AggregationStrategies extends Object
AggregationStrategy
, see links to the Javadocs of the relevant class below.Modifier and Type | Method and Description |
---|---|
static AggregationStrategy |
bean(Class<?> type)
Creates a
AggregationStrategyBeanAdapter for using a POJO as the aggregation strategy. |
static AggregationStrategy |
bean(Class<?> type,
String methodName)
Creates a
AggregationStrategyBeanAdapter for using a POJO as the aggregation strategy. |
static AggregationStrategy |
bean(Object bean)
Creates a
AggregationStrategyBeanAdapter for using a POJO as the aggregation strategy. |
static AggregationStrategy |
bean(Object bean,
String methodName)
Creates a
AggregationStrategyBeanAdapter for using a POJO as the aggregation strategy. |
static AggregationStrategy |
beanAllowNull(Class<?> type,
String methodName)
Creates a
AggregationStrategyBeanAdapter for using a POJO as the aggregation strategy. |
static AggregationStrategy |
beanAllowNull(Object bean,
String methodName)
Creates a
AggregationStrategyBeanAdapter for using a POJO as the aggregation strategy. |
static FlexibleAggregationStrategy<Object> |
flexible()
Creates a
FlexibleAggregationStrategy with no particular type, i.e. |
static <T> FlexibleAggregationStrategy<T> |
flexible(Class<T> type)
Creates a
FlexibleAggregationStrategy pivoting around a particular type, e.g. |
static AggregationStrategy |
groupedExchange()
Creates a
GroupedExchangeAggregationStrategy aggregation strategy. |
static AggregationStrategy |
useLatest()
Use the latest incoming exchange.
|
static AggregationStrategy |
useOriginal()
Use the original exchange.
|
static XsltAggregationStrategy |
xslt(String xslFileLocation)
Creates a
XsltAggregationStrategy as the aggregation strategy. |
public static <T> FlexibleAggregationStrategy<T> flexible(Class<T> type)
FlexibleAggregationStrategy
pivoting around a particular type, e.g. it casts all pick expression
results to the desired type.type
- The type the FlexibleAggregationStrategy
deals with.public static FlexibleAggregationStrategy<Object> flexible()
FlexibleAggregationStrategy
with no particular type, i.e. performing no casts or type conversion of
pick expression results.public static AggregationStrategy useLatest()
UseLatestAggregationStrategy
public static AggregationStrategy useOriginal()
UseOriginalAggregationStrategy
public static AggregationStrategy groupedExchange()
GroupedExchangeAggregationStrategy
aggregation strategy.public static AggregationStrategy bean(Object bean)
AggregationStrategyBeanAdapter
for using a POJO as the aggregation strategy.public static AggregationStrategy bean(Object bean, String methodName)
AggregationStrategyBeanAdapter
for using a POJO as the aggregation strategy.public static AggregationStrategy beanAllowNull(Object bean, String methodName)
AggregationStrategyBeanAdapter
for using a POJO as the aggregation strategy.public static AggregationStrategy bean(Class<?> type)
AggregationStrategyBeanAdapter
for using a POJO as the aggregation strategy.public static AggregationStrategy bean(Class<?> type, String methodName)
AggregationStrategyBeanAdapter
for using a POJO as the aggregation strategy.public static AggregationStrategy beanAllowNull(Class<?> type, String methodName)
AggregationStrategyBeanAdapter
for using a POJO as the aggregation strategy.public static XsltAggregationStrategy xslt(String xslFileLocation)
XsltAggregationStrategy
as the aggregation strategy.Apache Camel