org.apache.turbine.services.assemblerbroker.util.python
Class PythonScreenFactory
java.lang.Object
org.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory<Screen>
org.apache.turbine.services.assemblerbroker.util.python.PythonScreenFactory
- All Implemented Interfaces:
- Loader<Screen>, AssemblerFactory<Screen>
public class PythonScreenFactory
- extends PythonBaseFactory<Screen>
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: PythonScreenFactory.java 1078552 2011-03-06 19:58:46Z tv $
- Author:
- Leon Messerschmidt, Henning P. Schmiedehausen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PythonScreenFactory
public PythonScreenFactory()
getAssembler
public Screen 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<Screen> getLoader()
- Get the loader for this type of assembler
- Specified by:
getLoader
in interface AssemblerFactory<Screen>
- Specified by:
getLoader
in class PythonBaseFactory<Screen>
- Returns:
- a Loader
Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.