|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TaskLoader
An interface to a task loader used in pipes to load and execute request specific tasks in addition to standard filter processing.
Based on ModuleLoader in the Apache Jakarta Turbine
project.
| Method Summary | |
|---|---|
void |
addPackageName(int index,
String pckage)
Adds a package name to the specified location of the task search list. |
void |
addPackageName(String pckage)
Adds a package name to the task search list. |
void |
clearPackageNames()
Clears all package name from the task search list. |
void |
execute(String name,
ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
Executes an instance of a task |
String[] |
getPackageNames()
Gets package names in the task search list. |
boolean |
initialize(String name,
ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
Initializes an instance of a task without execution. |
boolean |
isScriptingEnabled()
Checks whether scripting is enabled. |
void |
removePackageName(String pckage)
Removes a package name from the task search list. |
void |
setPackageNames(String[] pckages)
Sets package names in the task search list. |
void |
setScriptingEnabled(boolean flag)
Sets the scripting enabled flag. |
| Methods inherited from interface org.norther.tammi.core.cache.CacheClient |
|---|
clearCached, expireCached, expireFraction, getCache, isCachingDisabled, removeCache, setCachingDisabled |
| Methods inherited from interface org.norther.tammi.core.base.Refreshable |
|---|
getRefreshed, refresh |
| Method Detail |
|---|
boolean isScriptingEnabled()
void setScriptingEnabled(boolean flag)
flag - the scripting enabled flag.String[] getPackageNames()
void setPackageNames(String[] pckages)
pckages - an array of package names.void addPackageName(String pckage)
pckage - the package name to add.
void addPackageName(int index,
String pckage)
index - an index in the list.pckage - the package name to add.
IndexOutOfBoundsException - if index is out of range.void removePackageName(String pckage)
pckage - the package name to remove.void clearPackageNames()
boolean initialize(String name,
ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
name - the name of the task.request - the request.response - the response.chain - the filter chain.context - a task specific context.
void execute(String name,
ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
throws ExecutionException,
InterruptedException
name - the name of the task.request - the request.response - the response.chain - the filter chain.context - a task specific context.
ExecutionException - for execution errors.
InterruptedException - if a task is interrupted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||