|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jagg.AggregatorCache
public class AggregatorCache
Created as a wrapper around a HashMap that maps aggregator specification
strings to Lists of Aggregators.
| Method Summary | |
|---|---|
Aggregator |
getAggregator(Aggregator archetype)
Adds the given Aggregator to an internal cache. |
static AggregatorCache |
getAggregatorCache()
Returns the singleton AggregatorCache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AggregatorCache getAggregatorCache()
AggregatorCache.
AggregatorCache.public Aggregator getAggregator(Aggregator archetype)
Aggregator to an internal cache. If it's not
in use, then it marks it as "in use" and returns it. Else, it searches
the cache for an Aggregator that matches the given
Aggregator and is not already in use. If none exist in the
cache, then it replicates the given Aggregator, adds it to
the cache, and returns it.
archetype - The Aggregator whose properties (and type)
need to be matched.
Aggregator object. It could be
archetype itself if it's not already in use, or it could
be null if archetype was null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||