T - O - public class MapperChain extends Mapper<List<Chain>> implements Chain
Mapper to Chain different types of Chains in a List
Chain take in an Object and return an Object. A FilterChain however returns boolean.
If In the Chain there is a FilterChain used, and it returns false; the chain will be terminated by BreakChainException with BreakChainException.CauseType.TERMINATE
else it will allow the previous value to filter through/propagate in the chain.| Constructor and Description |
|---|
MapperChain(List<Chain> mapperChain) |
MapperChain(MapperChain mapper) |
| Modifier and Type | Method and Description |
|---|---|
Object |
chain(Object t) |
List |
getProcessors()
Gets the
List of processors in the chain |
addBehavior, getBehavior, getBehaviors, getEntityClass, getFieldName, getId, getProcessor, setBehaviors, setEntityClass, setFieldName, setId, setProcessorpublic MapperChain(MapperChain mapper)
public Object chain(Object t) throws BreakChainException
chain in interface ChainBreakChainExceptionpublic List getProcessors()
ChainList of processors in the chaingetProcessors in interface ChainCopyright © 2018. All rights reserved.