Class PythonActionFactory
- java.lang.Object
-
- org.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory<Action>
-
- org.apache.turbine.services.assemblerbroker.util.python.PythonActionFactory
-
- All Implemented Interfaces:
Loader<Action>
,AssemblerFactory<Action>
public class PythonActionFactory extends PythonBaseFactory<Action>
A screen factory that attempts to load a python class in the JPython interpreter and execute it as a Turbine screen. The JPython script should inherit from Turbine Screen or one of its subclasses.- Version:
- $Id$
- Author:
- Leon Messerschmidt, Henning P. Schmiedehausen
-
-
Field Summary
-
Fields inherited from class org.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory
PYTHON_CONFIG_FILE, PYTHON_PATH
-
-
Constructor Summary
Constructors Constructor Description PythonActionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Action
getAssembler(String name)
Get an Assembler.Loader<Action>
getLoader()
Get the loader for this type of assemblerClass<Action>
getManagedClass()
Get the class of this assembler-
Methods inherited from class org.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory
getAssembler, getCacheSize
-
-
-
-
Constructor Detail
-
PythonActionFactory
public PythonActionFactory()
-
-
Method Detail
-
getAssembler
public Action getAssembler(String name) throws Exception
Get an Assembler.- Parameters:
name
- name of the requested Assembler- Returns:
- an Assembler
- Throws:
Exception
- generic exception
-
getLoader
public Loader<Action> getLoader()
Get the loader for this type of assembler- Specified by:
getLoader
in interfaceAssemblerFactory<Action>
- Specified by:
getLoader
in classPythonBaseFactory<Action>
- Returns:
- a Loader
-
getManagedClass
public Class<Action> getManagedClass()
Get the class of this assembler- Returns:
- a class
-
-