org.apache.stylebook
Class ComponentFactory

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

public class ComponentFactory
extends Object

Version:
CVS $Revision: 313195 $ $Date: 1999-11-15 22:08:18 +0000 (Mon, 15 Nov 1999) $
Author:
Pierpaolo Fumagalli, Copyright 1999 © The Apache Software Foundation. All rights reserved.

Method Summary
static Component getComponent(String classname)
          Create a new Component instance.
static Parser getParser(String classname)
          Create a new Parser instance.
static Printer getPrinter(String classname)
          Create a new Printer instance.
static Processor getProcessor(String classname)
          Create a new Processor instance.
static Producer getProducer(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(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.