Package org.apache.stylebook
Class ComponentFactory
- java.lang.Object
-
- org.apache.stylebook.ComponentFactory
-
public class ComponentFactory extends java.lang.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
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.
-
-
-
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.
-
-