title: How to create a custom aggregator in Mule?
body: <p>What is the recommended way to create a completely custom aggregator in mule 3.x?  By completely custom, I mean according to my own logic, not using correlation IDs, message counts, etc.  </p>
  
  <p>The documentation on the mulesoft site is outdated, saying to use AbstractEventAggregator which does not exist in 3.x:</p>
  
  <p><a href="http://www.mulesoft.org/documentation/display/MULE3USER/Message+Splitting+and+Aggregatio" rel="nofollow">http://www.mulesoft.org/documentation/display/MULE3USER/Message+Splitting+and+Aggregatio</a></p>
  
  <p>Digging deeper, it looks like this class has been renamed to AbstractAggregator in 3.x:</p>
  
  <p><a href="http://www.mulesoft.org/docs/site/3.2.0/apidocs/org/mule/routing/AbstractAggregator.html" rel="nofollow">http://www.mulesoft.org/docs/site/3.2.0/apidocs/org/mule/routing/AbstractAggregator.html</a></p>
  
  <p>However, there are no examples that show how to use this.  The LoanBroker example described in the first link above actually uses a correlation aggregator (in the 2.x examples, which I assume is what the document is referring to).</p>
  
  <p>At one point, there was an abstract class that had abstract methods shouldAggregate and doAggregate.  This is the kind of class I would like to extend.</p>