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

## Class PythonPageFactory

- java.lang.Object
- - org.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory<Page>
  - - org.apache.turbine.services.assemblerbroker.util.python.PythonPageFactory

- All Implemented Interfaces:
    Loader<Page>, AssemblerFactory<Page>

      public class PythonPageFactory
      extends PythonBaseFactory<Page>

  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: PythonPageFactory.java 1199089 2011-11-08 03:14:28Z 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

    Constructors
    Constructor and Description
    `PythonPageFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Page` | `getAssembler(String name)` Get an Assembler.
    `Loader<Page>` | `getLoader()` Get the loader for this type of assembler
    `Class<Page>` | `getManagedClass()` Get the class of this assembler

    - ### Methods inherited from class org.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory

      `getAssembler, getCacheSize`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PythonPageFactory

          public PythonPageFactory()

  - ### Method Detail

    - #### getAssembler

          public Page 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<Page> getLoader()

      Get the loader for this type of assembler
      Specified by:
        `getLoader` in interface `AssemblerFactory<Page>`
      Specified by:
        `getLoader` in class `PythonBaseFactory<Page>`
      Returns:
        a Loader

    - #### getManagedClass

          public Class<Page> getManagedClass()

      Get the class of this assembler
      Returns:
        a class

Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.