Class PythonNavigationFactory
- java.lang.Object
-
- org.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory<Navigation>
-
- org.apache.turbine.services.assemblerbroker.util.python.PythonNavigationFactory
-
- All Implemented Interfaces:
Loader<Navigation>,AssemblerFactory<Navigation>
public class PythonNavigationFactory extends PythonBaseFactory<Navigation>
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 PythonNavigationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NavigationgetAssembler(String name)Get an Assembler.Loader<Navigation>getLoader()Get the loader for this type of assemblerClass<Navigation>getManagedClass()Get the class of this assembler-
Methods inherited from class org.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory
getAssembler, getCacheSize
-
-
-
-
Constructor Detail
-
PythonNavigationFactory
public PythonNavigationFactory()
-
-
Method Detail
-
getAssembler
public Navigation 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<Navigation> getLoader()
Get the loader for this type of assembler- Specified by:
getLoaderin interfaceAssemblerFactory<Navigation>- Specified by:
getLoaderin classPythonBaseFactory<Navigation>- Returns:
- a Loader
-
getManagedClass
public Class<Navigation> getManagedClass()
Get the class of this assembler- Returns:
- a class
-
-