Class ComponentFactory
java.lang.Object
org.apache.stylebook.ComponentFactory
- 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 Summary
Modifier and TypeMethodDescriptionstatic ComponentgetComponent(String classname) Create a new Component instance.static ParserCreate a new Parser instance.static PrintergetPrinter(String classname) Create a new Printer instance.static ProcessorgetProcessor(String classname) Create a new Processor instance.static ProducergetProducer(String classname) Create a new Producer instance.
-
Method Details
-
getComponent
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
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
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
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
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.
-