|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.config.ViewsDisplayFactory
Field Summary | |
protected boolean |
initialized
Boolean indicating if the init() method has been called. |
private static ViewsDisplayFactory |
instance
The singleton instance. |
protected long |
lastModified
Timestamp of the viewDisplay file, used to know when to reload from disk. |
protected java.io.File |
viewsDisplayFile
File path of groups.xml. |
protected java.util.Map |
viewsMap
Map of view objects by name. |
Constructor Summary | |
private |
ViewsDisplayFactory()
Empty private constructor so this class cannot be instantiated outside itself. |
Method Summary | |
static ViewsDisplayFactory |
getInstance()
Singleton static call to get the only instance that should exist for the ViewsDisplayFactory |
View |
getView(java.lang.String viewName)
Can be null |
static void |
init()
Be sure to call this method before calling getInstance(). |
void |
reload()
Parses the viewsdisplay.xml via the Castor classes |
protected void |
updateFromFile()
Reload the viewsdisplay.xml file if it has been changed since we last read it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static ViewsDisplayFactory instance
protected java.io.File viewsDisplayFile
protected boolean initialized
protected long lastModified
protected java.util.Map viewsMap
Constructor Detail |
private ViewsDisplayFactory()
Method Detail |
public static void init() throws java.io.IOException, java.io.FileNotFoundException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
java.io.IOException
java.io.FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public static ViewsDisplayFactory getInstance()
java.lang.IllegalStateException
- if init has not been calledpublic void reload() throws java.io.IOException, java.io.FileNotFoundException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
java.io.IOException
java.io.FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public View getView(java.lang.String viewName) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected void updateFromFile() throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |