|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpnuts.ext.ModuleBase
pnuts.tools.init
public class init
Constructor Summary | |
---|---|
init()
|
Method Summary | |
---|---|
java.lang.Object |
execute(Context context)
Subclasses should override this method, instead of run(Context), to define the initialization process. |
java.lang.String |
getPrefix()
Defines the prefix of script class (resource) name. |
protected java.lang.String[] |
getSubModules()
This method is supposed to be redefined in a subclass to define a set of modules that this module provides in the caller's context. |
Methods inherited from class pnuts.ext.ModuleBase |
---|
autoload, autoloadClass, autoloadFunction, getClassName, getPackage, getRequiredModules, newInstance, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public init()
Method Detail |
---|
public java.lang.String getPrefix()
ModuleBase
getPrefix
in class ModuleBase
protected java.lang.String[] getSubModules()
ModuleBase
getSubModules
in class ModuleBase
public java.lang.Object execute(Context context)
ModuleBase
execute
in class ModuleBase
context
- the context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |