org.apache.turbine.services.assemblerbroker.util.python
Class PythonBaseFactory
java.lang.Object
org.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory
- All Implemented Interfaces:
- AssemblerFactory
- Direct Known Subclasses:
- PythonActionFactory, PythonLayoutFactory, PythonNavigationFactory, PythonPageFactory, PythonScreenFactory
- public abstract class PythonBaseFactory
- extends java.lang.Object
- implements AssemblerFactory
A 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: PythonBaseFactory.java 264148 2005-08-29 14:21:04Z henning $
- Author:
- Leon Messerschmidt, Henning P. Schmiedehausen
Method Summary |
Assembler |
getAssembler(java.lang.String subDirectory,
java.lang.String name)
Get an Assembler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PYTHON_PATH
public static final java.lang.String PYTHON_PATH
- Key for the python path
- See Also:
- Constant Field Values
PYTHON_CONFIG_FILE
public static final java.lang.String PYTHON_CONFIG_FILE
- Global config file. This is executed before every screen
- See Also:
- Constant Field Values
PythonBaseFactory
public PythonBaseFactory()
getAssembler
public Assembler getAssembler(java.lang.String subDirectory,
java.lang.String name)
throws java.lang.Exception
- Get an Assembler.
- Parameters:
subDirectory
- subdirectory within python.pathname
- name of the requested Assembler
- Returns:
- an Assembler
- Throws:
java.lang.Exception
- generic exception
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.