Helma Logo
main list history

class.properties

The class.properties is used to tell an application that it should not use standard HopObjects as basic building blocks but rather custom Java classes.

It is possible to use any public Java classes as building blocks of a Helma application. If classes implement the helma.framework.IPathElement interface, the methods defined therein will be called to resolve the URI paths of incoming requests and assign a scripted prototype to each class. If objects do not implement the IPathElement interface, these methods can be implemented as JavaScript functions in the object's prototypes.

Property Description
root The root property defines the class name of the application's root object. Unless factory class and method are defined as described below, Helma will try to create an instance of this class by calling the zero-argument constructor on the class.
root.factory.class The class to be used as factory for the root object.
root.factory.method The method to be called as factory method for the root object. If defined, Helma will try to invoke the static method of this name on the class defined by the root.factory.class property.
com.any.java.Class All other properties will be interpreted as mappings between Java class names and Helma prototypes. Each of these mappings specifies that Java objects of the given class will be wrapped into the Helma prototype defined as property value. For example:

helma.main.Server = root
helma.framework.core.Application = application

See also:
http://helma.org/pipermail/helma-user/2001-September/003865.html