Package org.apache.turbine.modules
Class ScreenLoader
- java.lang.Object
-
- org.apache.turbine.modules.GenericLoader<Screen>
-
- org.apache.turbine.modules.ScreenLoader
-
public class ScreenLoader extends GenericLoader<Screen>
The purpose of this class is to allow one to load and execute Screen modules.- Version:
- $Id$
- Author:
- Dave Bryson, Henning P. Schmiedehausen, Peter Courcoux
-
-
Field Summary
-
Fields inherited from class org.apache.turbine.modules.GenericLoader
ab
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
eval(PipelineData pipelineData, String name)
Attempts to load and execute the external Screen.void
exec(PipelineData pipelineData, String name)
Attempts to load and execute the Screen.static ScreenLoader
getInstance()
The method through which this class is accessed.-
Methods inherited from class org.apache.turbine.modules.GenericLoader
getAssembler, getAssembler, getBasePackage, getCacheSize, getPackages, reload, setReload
-
-
-
-
Method Detail
-
eval
public String eval(PipelineData pipelineData, String name) throws Exception
Attempts to load and execute the external Screen. This is used when you want to execute a Screen which returns its output via a String instead of out the data.getResponse() value. This allows you to easily chain the execution of Screen modules together.- Parameters:
pipelineData
- Turbine information.name
- Name of object that will execute the screen.- Returns:
- the output of the screen module
- Throws:
Exception
- a generic exception.
-
exec
public void exec(PipelineData pipelineData, String name) throws Exception
Attempts to load and execute the Screen. This is used when you want to execute a Screen which returns its output via the data.getResponse() object.- Specified by:
exec
in classGenericLoader<Screen>
- Parameters:
pipelineData
- Turbine information.name
- Name of object that will execute the screen.- Throws:
Exception
- a generic exception.
-
getInstance
public static ScreenLoader getInstance()
The method through which this class is accessed.- Returns:
- The single instance of this class.
-
-