Class ComponentFactory

java.lang.Object
org.apache.stylebook.ComponentFactory

public class ComponentFactory extends Object
Version:
CVS $Revision: 313195 $ $Date: 1999-11-15 23:08:18 +0100 (Mon, 15 Nov 1999) $
Author:
Pierpaolo Fumagalli, Copyright 1999 © The Apache Software Foundation. All rights reserved.
  • Method Details

    • getComponent

      public static Component getComponent(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(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(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(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(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.