org.iqual.chaplin.composite
Class AggregatorImpl

java.lang.Object
  extended by org.iqual.chaplin.composite.AggregatorImpl
All Implemented Interfaces:
ComponentAggregator, ReturnAggregator
Direct Known Subclasses:
AbstractAggregator, CounterAggregator

public class AggregatorImpl
extends Object
implements ReturnAggregator, ComponentAggregator

The default aggregator which takes the first value in the values list as the result or null if the list of values is empty.

Since:
Mar 31, 2009 9:05:33 PM
Author:
Zbynek Slajchrt

Constructor Summary
AggregatorImpl()
           
 
Method Summary
 Object aggregateComponents(Class fieldType, List<Object> components)
           
 Object aggregateReturnValues(String methodName, Class[] argumentClasses, Class returnType, List<Object> values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatorImpl

public AggregatorImpl()
Method Detail

aggregateReturnValues

public Object aggregateReturnValues(String methodName,
                                    Class[] argumentClasses,
                                    Class returnType,
                                    List<Object> values)
                             throws Exception
Specified by:
aggregateReturnValues in interface ReturnAggregator
Throws:
Exception

aggregateComponents

public Object aggregateComponents(Class fieldType,
                                  List<Object> components)
Specified by:
aggregateComponents in interface ComponentAggregator


Copyright © 2009 iquality.org. All Rights Reserved.