Class ProcessorFactory

java.lang.Object
org.project.service.ProcessorFactory

public class ProcessorFactory extends Object
Factory to get the right InputProcessor for a given type.
  • Constructor Details

    • ProcessorFactory

      public ProcessorFactory()
  • Method Details

    • getProcessor

      public static InputProcessor getProcessor(String type)
      Get processor for the given type.
      Parameters:
      type - input type (e.g. "text")
      Returns:
      InputProcessor for the type
      Throws:
      IllegalArgumentException - if type is not supported