public class ClassifierCompositeItemProcessor<I,O> extends java.lang.Object implements ItemProcessor<I,O>
Classifier
.
Note the user is responsible for injecting a Classifier
that returns an ItemProcessor that conforms to the declared input and output types.Constructor and Description |
---|
ClassifierCompositeItemProcessor() |
Modifier and Type | Method and Description |
---|---|
O |
process(I item)
Delegates to injected
ItemProcessor instances according to the
classification by the Classifier . |
void |
setClassifier(org.springframework.classify.Classifier<? super I,ItemProcessor<?,? extends O>> classifier) |
public void setClassifier(org.springframework.classify.Classifier<? super I,ItemProcessor<?,? extends O>> classifier)
classifier
- the classifier to setpublic O process(I item) throws java.lang.Exception
ItemProcessor
instances according to the
classification by the Classifier
.process
in interface ItemProcessor<I,O>
item
- to be processedjava.lang.Exception