org.apache.camel.example.tracer
Class QuoteAggregator

java.lang.Object
  extended by org.apache.camel.example.tracer.QuoteAggregator
All Implemented Interfaces:
AggregationStrategy

public class QuoteAggregator
extends Object
implements AggregationStrategy

Our aggregator where we aggregate all the quotes and find the the best quotes based on the one that has the most cool words from our cools words list


Constructor Summary
QuoteAggregator()
           
 
Method Summary
 Exchange aggregate(Exchange oldExchange, Exchange newExchange)
           
 void setCoolWords(List<String> coolWords)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuoteAggregator

public QuoteAggregator()
Method Detail

setCoolWords

public void setCoolWords(List<String> coolWords)

aggregate

public Exchange aggregate(Exchange oldExchange,
                          Exchange newExchange)
Specified by:
aggregate in interface AggregationStrategy


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.