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