Class PythonBaseFactory<T extends Assembler>
java.lang.Object
org.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory<T>
- Type Parameters:
- T- the specialized assembler type
- All Implemented Interfaces:
- Loader<T>,- AssemblerFactory<T>
- Direct Known Subclasses:
- PythonActionFactory,- PythonLayoutFactory,- PythonNavigationFactory,- PythonPageFactory,- PythonScreenFactory
public abstract class PythonBaseFactory<T extends Assembler>
extends Object
implements AssemblerFactory<T>
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.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetAssembler(String subDirectory, String name) Get an Assembler.intGet the size of a possibly configured cacheGet the loader for this type of assemblerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.turbine.services.assemblerbroker.util.AssemblerFactorygetManagedClassMethods inherited from interface org.apache.turbine.modules.LoadergetAssembler
- 
Field Details- 
PYTHON_PATHKey for the python path- See Also:
 
- 
PYTHON_CONFIG_FILEGlobal config file. This is executed before every screen- See Also:
 
 
- 
- 
Constructor Details- 
PythonBaseFactorypublic PythonBaseFactory()
 
- 
- 
Method Details- 
getAssemblerGet an Assembler.- Parameters:
- subDirectory- subdirectory within python.path
- name- name of the requested Assembler
- Returns:
- an Assembler
- Throws:
- Exception- generic exception
 
- 
getLoaderGet the loader for this type of assembler- Specified by:
- getLoaderin interface- AssemblerFactory<T extends Assembler>
- Returns:
- a Loader
 
- 
getCacheSizeGet the size of a possibly configured cache- Specified by:
- getCacheSizein interface- Loader<T extends Assembler>
- Returns:
- the size of the cache in bytes
 
 
-