org.apache.turbine.services.assemblerbroker.util.python
Class PythonBaseFactory

java.lang.Object
  extended byorg.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 534527 2007-05-02 16:10:59Z tv $
Author:
Leon Messerschmidt, Henning P. Schmiedehausen

Field Summary
static java.lang.String PYTHON_CONFIG_FILE
          Global config file.
static java.lang.String PYTHON_PATH
          Key for the python path
 
Constructor Summary
PythonBaseFactory()
           
 
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
 
Methods inherited from interface org.apache.turbine.services.assemblerbroker.util.AssemblerFactory
getAssembler
 

Field Detail

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
Constructor Detail

PythonBaseFactory

public PythonBaseFactory()
Method Detail

getAssembler

public Assembler getAssembler(java.lang.String subDirectory,
                              java.lang.String name)
                       throws java.lang.Exception
Get an Assembler.

Parameters:
subDirectory - subdirectory within python.path
name - name of the requested Assembler
Returns:
an Assembler
Throws:
java.lang.Exception - generic exception


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.