Package com.tangosol.coherence.dslquery
Class ChainedExtractorBuilder
java.lang.Object
com.tangosol.coherence.dslquery.ChainedExtractorBuilder
- All Implemented Interfaces:
ExtractorBuilder
An
ExtractorBuilder implementation that delegates building
ValueExtractors to a chain of ExtractorBuilders
and returns the result from the first ExtractorBuilder to return a
non-null value from its realize(String, int, String) method.- Since:
- Coherence 12.2.1
- Author:
- jk 2014.07.15
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<ExtractorBuilder>The chain ofExtractorBuilders to delegate to. -
Constructor Summary
ConstructorsConstructorDescriptionChainedExtractorBuilder(ExtractorBuilder... aBuilders) Construct a ChainedExtractorBuilder that uses the specified chain ofExtractorBuilders to realize instances ofValueExtractors. -
Method Summary
Modifier and TypeMethodDescriptionCall the realize(String, int, String) method on eachExtractorBuilderin the chain returning the result of the first ExtractorBuilder to return a non-null value.
-
Field Details
-
f_listBuilders
The chain ofExtractorBuilders to delegate to.
-
-
Constructor Details
-
ChainedExtractorBuilder
Construct a ChainedExtractorBuilder that uses the specified chain ofExtractorBuilders to realize instances ofValueExtractors.- Parameters:
aBuilders- the chain of ExtractorBuilder to use
-
-
Method Details
-
realize
Call the realize(String, int, String) method on eachExtractorBuilderin the chain returning the result of the first ExtractorBuilder to return a non-null value.- Specified by:
realizein interfaceExtractorBuilder- Parameters:
sCacheName- the name of the cache the ValueExtractor will be invoked againstnTarget- the target for the ValueExtractorsProperties- the path to the property value to extract- Returns:
- a
ValueExtractorfor the given cache name, target and properties or null if non of the ExtractorBuilder returned a non-null value
-