Class RuntimeProcessingManager

  • All Implemented Interfaces:
    FactoryAccessor, ProcessingManager

    public class RuntimeProcessingManager
    extends java.lang.Object
    implements ProcessingManager
    This processing manager implements a blocking processing policy that consists of applying the processors in a FIFO order until no processors remain to be applied.
    • Constructor Summary

      Constructor Description
      RuntimeProcessingManager​(Factory factory)
      Creates a new processing manager that maintains a queue of processors to be applied to a given factory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addProcessor​(java.lang.Class<? extends Processor<?>> type)
      Adds a processor by instantiating its type (a class that must define an empty constructor).
      void addProcessor​(java.lang.String qualifiedName)
      Adds a processor by instantiating its type (a class that must define an empty constructor and implement Processor).
      boolean addProcessor​(Processor<?> p)
      Adds a processor.
      Processor<?> getCurrentProcessor()  
      Factory getFactory()
      Gets the factory of this object.
      java.util.List<Processor<?>> getProcessors()
      Gets the processors that have been added to the manager and that will be applied when invoking one of the process methods).
      void process​(java.util.Collection<? extends CtElement> elements)
      Recursively processes a collection of CtElements with this manager.
      void process​(java.util.Collection<? extends CtElement> elements, Processor<?> processor)
      Recursively processes elements and their children with a given processor.
      void process​(CtElement element)
      Recursively processes a CtElement with this manager.
      void process​(CtElement element, Processor<?> processor)
      Recursively processes an element and its children with a given processor.
      void setFactory​(Factory factory)
      Sets the factory object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait