|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.rest.util.aggregator.DefaultAggregatorFactory
public class DefaultAggregatorFactory
The default implementation of AggregatorFactory
.
This AggregatorFactory
implementation is used for aggregators that accept a single ValueExtractor
argument in the constructor and require no additional configuration.
Constructor Summary | |
---|---|
DefaultAggregatorFactory(java.lang.Class clzAggr) Construct a DefaultAggregatorFactory instance. |
Method Summary | |
---|---|
protected InvocableMap.EntryAggregator |
createAggregator(ValueExtractor extractor) Create and initialize a new aggregator instance. |
InvocableMap.EntryAggregator |
getAggregator(java.lang.String[] asArgs) Return an aggregator instantiated by calling an aggregator class constructor. |
protected java.lang.reflect.Constructor |
getConstructor(java.lang.reflect.Constructor[] aCtors) Search the given constructors for a constructor that accepts a single ValueExtractor parameter. |
Constructor Detail |
---|
public DefaultAggregatorFactory(java.lang.Class clzAggr)
clzAggr
- the aggregator classMethod Detail |
---|
public InvocableMap.EntryAggregator getAggregator(java.lang.String[] asArgs)
ValueExtractor
parameter exists, it will be invoked with an IdentityExtractor
instance.ValueExtractor
parameter does not exists, the default constructor is invoked.ValueExtractor
parameter exists, it will be invoked with an MVEL-based ValueExtractor implementation.getAggregator
in interface AggregatorFactory
asArgs
- aggregator configuration argumentsjava.lang.IllegalArgumentException
- if an appropriate constructor cannot be foundprotected InvocableMap.EntryAggregator createAggregator(ValueExtractor extractor)
extractor
- ValueExtractor
to use for a constructor parameterprotected java.lang.reflect.Constructor getConstructor(java.lang.reflect.Constructor[] aCtors)
ValueExtractor
parameter. If found, return the constructor; otherwise return the public default constructor, if available.aCtors
- constructor array
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |