|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.webed.impl.utils.ActionConfigurator
public class ActionConfigurator
INTERNAL: Provide easy access for reading in an action configuration file and generating an action registry object from it. Automatic observation of file changes are performed
Field Summary | |
---|---|
protected java.lang.String |
contextPath
|
protected long |
delay
|
protected java.lang.String |
fileName
|
protected boolean |
logErrors
|
protected java.util.Collection |
observers
|
protected java.lang.String |
realPath
|
protected ActionRegistryIF |
registry
|
Constructor Summary | |
---|---|
ActionConfigurator(java.lang.String contextPath,
java.lang.String realPath,
java.lang.String fileName)
Constructor which allows to specify the path of the servlet context and the configuration file name. |
|
ActionConfigurator(java.lang.String contextPath,
java.lang.String realPath,
java.lang.String fileName,
long delay)
See ActionConfigurator(String, String, String) with automatic
observation for changes of the configuration file. |
Method Summary | |
---|---|
void |
addObserver(ConfigurationObserverIF o)
Adds an observer to the set of observers for this object. |
java.lang.String |
getFileName()
|
ActionRegistryIF |
getRegistry()
|
void |
logErrors(boolean logErrors)
|
protected void |
notifyObserversConfigurationChanged()
Loops through and notifies each observer if a new item was detected. |
void |
readAndWatchRegistry()
|
void |
readRegistryConfiguration()
Reads in configuration file and try to generate a action registry object. |
void |
removeObserver(ConfigurationObserverIF o)
Removes an observer from the set of observers of this object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String contextPath
protected java.lang.String realPath
protected java.lang.String fileName
protected long delay
protected ActionRegistryIF registry
protected java.util.Collection observers
protected boolean logErrors
Constructor Detail |
---|
public ActionConfigurator(java.lang.String contextPath, java.lang.String realPath, java.lang.String fileName)
public ActionConfigurator(java.lang.String contextPath, java.lang.String realPath, java.lang.String fileName, long delay)
ActionConfigurator(String, String, String)
with automatic
observation for changes of the configuration file.
delay
- - The delay in milliseconds between file change
observations.Method Detail |
---|
public void logErrors(boolean logErrors)
public void readAndWatchRegistry()
public java.lang.String getFileName()
public ActionRegistryIF getRegistry()
public java.lang.String toString()
toString
in class java.lang.Object
public void addObserver(ConfigurationObserverIF o)
ConfigurationObservableIF
addObserver
in interface ConfigurationObservableIF
public void removeObserver(ConfigurationObserverIF o)
ConfigurationObservableIF
removeObserver
in interface ConfigurationObservableIF
public void readRegistryConfiguration()
protected void notifyObserversConfigurationChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |