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

java.lang.Object
  extended byorg.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory
      extended byorg.apache.turbine.services.assemblerbroker.util.python.PythonLayoutFactory
All Implemented Interfaces:
AssemblerFactory

public class PythonLayoutFactory
extends PythonBaseFactory

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: PythonLayoutFactory.java 534527 2007-05-02 16:10:59Z tv $
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
PythonLayoutFactory()
           
 
Method Summary
 Assembler getAssembler(java.lang.String name)
          Get an Assembler.
 
Methods inherited from class org.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory
getAssembler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PythonLayoutFactory

public PythonLayoutFactory()
Method Detail

getAssembler

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

Parameters:
name - name of the requested Assembler
Returns:
an Assembler
Throws:
java.lang.Exception - generic exception


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