1 package org.apache.turbine.services.assemblerbroker.util.python;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.apache.turbine.TurbineConstants;
20 import org.apache.turbine.modules.Assembler;
21
22 /***
23 * A screen factory that attempts to load a python class in the
24 * JPython interpreter and execute it as a Turbine screen.
25 * The JPython script should inherit from Turbine Screen or one
26 * of its subclasses.
27 *
28 * @author <a href="mailto:leon@opticode.co.za">Leon Messerschmidt</a>
29 * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
30 * @version $Id: PythonPageFactory.java 264148 2005-08-29 14:21:04Z henning $
31 */
32 public class PythonPageFactory
33 extends PythonBaseFactory
34 {
35 /***
36 * Get an Assembler.
37 *
38 * @param name name of the requested Assembler
39 * @return an Assembler
40 * @throws Exception generic exception
41 */
42 public Assembler getAssembler(String name)
43 throws Exception
44 {
45 return getAssembler(TurbineConstants.PAGE_PREFIX, name);
46 }
47 }