|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.chaosserver.bilbo.task.generate.FormatterFactory
Factory object used to create formatters.
Field Summary | |
protected Map |
formatterMap
Holds the map of formatter names to formatter class names. |
protected static FormatterFactory |
self
Self reference for singleton. |
protected static String |
SYNC
Synchronization object. |
Constructor Summary | |
protected |
FormatterFactory()
Default constructor. |
Method Summary | |
Formatter |
getFormatter(String formatterName)
Gets an instance of a formatter object for the name given. |
protected Map |
getFormatterMap()
Getter for the formatterMap |
static FormatterFactory |
getInstance()
Gets the instance of the FormatterFactory. |
protected void |
loadFormatterMap()
Loads the formatter map from file. |
protected void |
setFormatterMap(Map formatterMap)
Setter for the formatterMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static FormatterFactory self
protected static final String SYNC
protected Map formatterMap
Constructor Detail |
protected FormatterFactory()
Method Detail |
protected void setFormatterMap(Map formatterMap)
formatterMap
- the formatterMapprotected Map getFormatterMap()
protected void loadFormatterMap()
public static FormatterFactory getInstance()
public Formatter getFormatter(String formatterName) throws NoSuchFormatterException, FormatterCreationException
formatterName
- the name of the formatter to get
NoSuchFormatterException
- if there is no formatter for this name
FormatterCreationException
- if there is an error
instantiating the formatter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |