|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.turbine.services.assemblerbroker.util.python.PythonBaseFactory<T>
public abstract class PythonBaseFactory<T extends Assembler>
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 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 | |
|---|---|
T |
getAssembler(java.lang.String subDirectory,
java.lang.String name)
Get an Assembler. |
int |
getCacheSize()
Get the size of a possibly configured cache |
abstract Loader<T> |
getLoader()
Get the loader for this type of 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.modules.Loader |
|---|
getAssembler |
| Field Detail |
|---|
public static final java.lang.String PYTHON_PATH
public static final java.lang.String PYTHON_CONFIG_FILE
| Constructor Detail |
|---|
public PythonBaseFactory()
| Method Detail |
|---|
public T getAssembler(java.lang.String subDirectory,
java.lang.String name)
throws java.lang.Exception
subDirectory - subdirectory within python.pathname - name of the requested Assembler
java.lang.Exception - generic exceptionpublic abstract Loader<T> getLoader()
getLoader in interface AssemblerFactory<T extends Assembler>public int getCacheSize()
getCacheSize in interface Loader<T extends Assembler>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||