Class DemoExtension


  • public class DemoExtension
    extends HelmaExtension
    a demo extension implementation, to activate this add extensions = helma.extensions.demo.DemoExtensions to your server.properties. a new global object demo that wraps helma.main.Server will be added to the scripting environment.
    • Constructor Detail

      • DemoExtension

        public DemoExtension()
    • Method Detail

      • applicationStopped

        public void applicationStopped​(Application app)
        Description copied from class: HelmaExtension
        called when an Application is stopped. This should be synchronized when any self-destruction is performed.
        Specified by:
        applicationStopped in class HelmaExtension
        Parameters:
        app - ...
      • applicationUpdated

        public void applicationUpdated​(Application app)
        Description copied from class: HelmaExtension
        called when an Application's properties are have been updated. note that this will be called at startup once *before* applicationStarted().
        Specified by:
        applicationUpdated in class HelmaExtension
        Parameters:
        app - ...
      • initScripting

        public java.util.HashMap initScripting​(Application app,
                                               ScriptingEngine engine)
                                        throws ConfigurationException
        Description copied from class: HelmaExtension
        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.
        Specified by:
        initScripting in class HelmaExtension
        Parameters:
        app - ...
        engine - ...
        Returns:
        ...
        Throws:
        ConfigurationException - ...
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class HelmaExtension
        Returns:
        ...