|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.functions.FunctionProvider
org.mmbase.util.functions.DescribedFunctionProvider
org.mmbase.module.Module
org.mmbase.module.ProcessorModule
public abstract class ProcessorModule
The Processor Module extends the basic module to the Processor interface so it can perform for servscan (pagelets).
| Nested Class Summary | |
|---|---|
protected class |
ProcessorModule.GetNodeListFunction
Function implementation around getNodeList(Object, String, Map). |
protected class |
ProcessorModule.ProcessFunction
Function implementation around process(PageInfo, Hashtable, Hashtable). |
protected class |
ProcessorModule.ReplaceFunction
Function implementation around replace(PageInfo, String). |
| Field Summary | |
|---|---|
protected static Parameter.Wrapper |
PARAM_PAGEINFO
|
protected static Parameter[] |
PARAMS_PAGEINFO
|
| Fields inherited from class org.mmbase.module.Module |
|---|
configurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIME |
| Fields inherited from class org.mmbase.util.functions.DescribedFunctionProvider |
|---|
description, guiName, name |
| Fields inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
functions, getFunctions |
| Constructor Summary | |
|---|---|
ProcessorModule()
|
|
ProcessorModule(String name)
|
|
| Method Summary | |
|---|---|
List<String> |
getList(PageInfo sp,
StringTagger params,
String command)
|
MMObjectBuilder |
getListBuilder(String command,
Map<String,?> params)
|
List<MMObjectNode> |
getNodeList(Object context,
String command,
Map<String,?> params)
This method is a wrapper around getList(PageInfo, StringTagger, String) |
void |
init()
Initializes the module. |
void |
onload()
prepares the module when loaded. |
boolean |
process(PageInfo sp,
Hashtable<String,Object> cmds,
Hashtable<String,Object> vars)
|
void |
reload()
Deprecated. called by nothing |
String |
replace(PageInfo sp,
String command)
|
String |
replace(PageInfo sp,
StringTagger command)
|
void |
unload()
Deprecated. called by nothing |
| Methods inherited from class org.mmbase.module.Module |
|---|
addInitParameters, checkModules, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getStates, getVersion, hasModule, hasStarted, loadInitParameters, loadInitParameters, maintainance, setInitParameter, setMaintainer, setState, setVersion, shutdown, shutdownModules, startModule, startModules |
| Methods inherited from class org.mmbase.util.functions.DescribedFunctionProvider |
|---|
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setName |
| Methods inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Parameter[] PARAMS_PAGEINFO
protected static final Parameter.Wrapper PARAM_PAGEINFO
| Constructor Detail |
|---|
public ProcessorModule()
public ProcessorModule(String name)
| Method Detail |
|---|
public MMObjectBuilder getListBuilder(String command,
Map<String,?> params)
public List<MMObjectNode> getNodeList(Object context,
String command,
Map<String,?> params)
getList(PageInfo, StringTagger, String)
context - The PageInfo object. It beats me why it is Object and not PageInfo. I think it's silly.command - The command to executeparams - Parameters, they will be added to the StringTagger.
public List<String> getList(PageInfo sp,
StringTagger params,
String command)
public boolean process(PageInfo sp,
Hashtable<String,Object> cmds,
Hashtable<String,Object> vars)
public String replace(PageInfo sp,
String command)
public String replace(PageInfo sp,
StringTagger command)
public void reload()
public void unload()
public void init()
Module.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
init in class Modulepublic void onload()
Module.startModules(). You should not call onload() directly.
onload in class Module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||