类 ClassifierCompositeItemProcessor<I,​O>

  • 所有已实现的接口:
    ItemProcessor<I,​O>

    public class ClassifierCompositeItemProcessor<I,​O>
    extends java.lang.Object
    implements ItemProcessor<I,​O>
    Calls one of a collection of ItemProcessors, based on a router pattern implemented through the provided Classifier. Note the user is responsible for injecting a Classifier that returns an ItemProcessor that conforms to the declared input and output types.
    从以下版本开始:
    3.0
    作者:
    Jimmy Praet
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      Oprocess​(I item)
      Delegates to injected ItemProcessor instances according to the classification by the Classifier.
      voidsetClassifier​(org.springframework.classify.Classifier<? super I,​ItemProcessor<?,​? extends O>> classifier)
      Establishes the classifier that will determine which ItemProcessor to use.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • setClassifier

        public void setClassifier​(org.springframework.classify.Classifier<? super I,​ItemProcessor<?,​? extends O>> classifier)
        Establishes the classifier that will determine which ItemProcessor to use.
        参数:
        classifier - the Classifier to set
      • process

        public O process​(I item)
                  throws java.lang.Exception
        Delegates to injected ItemProcessor instances according to the classification by the Classifier.
        指定者:
        process 在接口中 ItemProcessor<I,​O>
        参数:
        item - to be processed
        返回:
        potentially modified or new item for continued processing, null if processing of the provided item should not continue.
        抛出:
        java.lang.Exception - thrown if exception occurs during processing.