Class HelmaExtension

  • Direct Known Subclasses:
    DemoExtension

    public abstract class HelmaExtension
    extends java.lang.Object
    Helma extensions have to subclass this. The extensions to be loaded are defined in server.properties by setting extensions = packagename.classname, packagename.classname.
    • Constructor Detail

      • HelmaExtension

        public HelmaExtension()
    • Method Detail

      • applicationStopped

        public abstract void applicationStopped​(Application app)
        called when an Application is stopped. This should be synchronized when any self-destruction is performed.
      • applicationUpdated

        public abstract void applicationUpdated​(Application app)
        called when an Application's properties are have been updated. note that this will be called at startup once *before* applicationStarted().
      • initScripting

        public abstract java.util.HashMap initScripting​(Application app,
                                                        ScriptingEngine engine)
                                                 throws ConfigurationException
        called by the ScriptingEngine when it is initizalized. Throws a ConfigurationException when this type of ScriptingEngine is not supported. New methods and prototypes can be added to the scripting environment. New global vars should be returned in a HashMap with pairs of varname and ESObjects. This method should be synchronized, if it performs any other self-initialization outside the scripting environment.
        Throws:
        ConfigurationException
      • getName

        public abstract java.lang.String getName()
        Returns:
        ...