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)
Establishes the classifier that will determine which
ItemProcessor to use. |
public void setClassifier(org.springframework.classify.Classifier<? super I,ItemProcessor<?,? extends O>> classifier)
ItemProcessor to use.classifier - the Classifier to set@Nullable public 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 processed, never null.null if processing of the
provided item should not continue.java.lang.Exception - thrown if exception occurs during processing.