added comment that advises initScripting, applicationStarted and applicationStopped to be synchronized.

This commit is contained in:
kmfdm 2002-07-29 08:32:09 +00:00
parent 5482bbfc77
commit 4b35b3bf2c

View file

@ -20,17 +20,23 @@ public abstract class HelmaExtension {
/** /**
* called when an Application is started. * called when an Application is started.
* This should be synchronized. Every application starting calls this method. Otherwise this could
* lead to problems when more than one application starts at the same time.
*/ */
public abstract void applicationStarted (Application app) throws ConfigurationException; public abstract void applicationStarted (Application app) throws ConfigurationException;
/** /**
* called when an Application is stopped. * called when an Application is stopped.
* This should be synchronized. Otherwise this could lead to problems when more than one
* application gets stopped.
*/ */
public abstract void applicationStopped (Application app); public abstract void applicationStopped (Application app);
/** /**
* called by the ScriptingEngine when it is initizalized. throws a ConfigurationException * called by the ScriptingEngine when it is initizalized. throws a ConfigurationException
* when this type of ScriptingEngine is not supported. * when this type of ScriptingEngine is not supported.
* This should be synchronized. Every application starting calls this method. Otherwise this could
* lead to problems when more than one application starts at the same time.
*/ */
public abstract void initScripting (Application app, ScriptingEngine engine) throws ConfigurationException; public abstract void initScripting (Application app, ScriptingEngine engine) throws ConfigurationException;