public class ComponentFactory
extends java.lang.Object
Modifier and Type | Method and 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.
|
public static Component getComponent(java.lang.String classname) throws InitializationException
classname
- The name of the Component class.InitializationException
- If the Component instance cannot be
created.public static Parser getParser(java.lang.String classname) throws InitializationException
classname
- The name of the Parser class.InitializationException
- If the Parser instance cannot be
created.public static Producer getProducer(java.lang.String classname) throws InitializationException
classname
- The name of the Producer class.InitializationException
- If the Producer instance cannot be
created.public static Processor getProcessor(java.lang.String classname) throws InitializationException
classname
- The name of the Processor class.InitializationException
- If the Processor instance cannot be
created.public static Printer getPrinter(java.lang.String classname) throws InitializationException
classname
- The name of the Printer class.InitializationException
- If the Printer instance cannot be
created.