|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.cockpit.generator.GeneratorMgr
public final class GeneratorMgr
The generator manager maintains a list of generator descriptors.
This class is a singleton.
Each descriptor defines a possible generation procedure for a particular item type
(see Generator.
The descriptors are loaded from a the client's generator directory
($OpenBP/cockpit/generator).
The generators are grouped by the item type.
| Method Summary | |
|---|---|
Generator |
getGenerator(java.lang.String name)
Retrieves the specified generator. |
java.util.List |
getGenerators(java.lang.String itemType,
boolean createItem)
Creates a sorted iterator of generators for a particular item type. |
static GeneratorMgr |
getInstance()
Gets the singleton instance of this class. |
void |
reload()
Reload all generator infos and template sets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static GeneratorMgr getInstance()
public void reload()
public Generator getGenerator(java.lang.String name)
name - Name of the generator as defined in the generator descriptor
public java.util.List getGenerators(java.lang.String itemType,
boolean createItem)
itemType - The item type or null to retrieve a list of all generatorscreateItem - true: Returns only generators that create an item of the specified type.Generator objects
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||