Class ComponentFactory

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Component getComponent​(java.lang.String classname)
      Create a new Component instance.
      static Parser getParser​(java.lang.String classname)
      Create a new Parser instance.
      static Printer getPrinter​(java.lang.String classname)
      Create a new Printer instance.
      static Processor getProcessor​(java.lang.String classname)
      Create a new Processor instance.
      static Producer getProducer​(java.lang.String classname)
      Create a new Producer instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getComponent

        public static Component getComponent​(java.lang.String classname)
                                      throws InitializationException
        Create a new Component instance.
        Parameters:
        classname - The name of the Component class.
        Returns:
        A non-null Component instance.
        Throws:
        InitializationException - If the Component instance cannot be created.
      • getParser

        public static Parser getParser​(java.lang.String classname)
                                throws InitializationException
        Create a new Parser instance.
        Parameters:
        classname - The name of the Parser class.
        Returns:
        A non-null Parser instance.
        Throws:
        InitializationException - If the Parser instance cannot be created.
      • getProducer

        public static Producer getProducer​(java.lang.String classname)
                                    throws InitializationException
        Create a new Producer instance.
        Parameters:
        classname - The name of the Producer class.
        Returns:
        A non-null Producer instance.
        Throws:
        InitializationException - If the Producer instance cannot be created.
      • getProcessor

        public static Processor getProcessor​(java.lang.String classname)
                                      throws InitializationException
        Create a new Processor instance.
        Parameters:
        classname - The name of the Processor class.
        Returns:
        A non-null Processor instance.
        Throws:
        InitializationException - If the Processor instance cannot be created.
      • getPrinter

        public static Printer getPrinter​(java.lang.String classname)
                                  throws InitializationException
        Create a new Printer instance.
        Parameters:
        classname - The name of the Printer class.
        Returns:
        A non-null Printer instance.
        Throws:
        InitializationException - If the Printer instance cannot be created.