org.apache.cocoon.components.language.programming.python
Class PythonProgram

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.language.programming.python.PythonProgram
All Implemented Interfaces:
LogEnabled, Program

public class PythonProgram
extends AbstractLogEnabled
implements Program

This class represents program in the Python language.

Version:
CVS $Id: PythonProgram.java 156462 2005-03-07 22:54:01Z sylvain $
Author:
Vadim Gritsenko

Field Summary
protected  Class clazz
           
protected  DefaultConfiguration config
           
protected  File file
           
 
Constructor Summary
PythonProgram(File file, Class clazz, Collection dependecies)
           
 
Method Summary
 ComponentHandler getHandler(ServiceManager manager, Context context)
          Get ComponentHandler which holds instances of this program.
 String getName()
          Get the name of this program.
 CompiledComponent newInstance()
          Create new instance of the program.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

protected File file

clazz

protected Class clazz

config

protected DefaultConfiguration config
Constructor Detail

PythonProgram

public PythonProgram(File file,
                     Class clazz,
                     Collection dependecies)
Method Detail

getName

public String getName()
Description copied from interface: Program
Get the name of this program.

Specified by:
getName in interface Program

getHandler

public ComponentHandler getHandler(ServiceManager manager,
                                   Context context)
                            throws Exception
Description copied from interface: Program
Get ComponentHandler which holds instances of this program.

Specified by:
getHandler in interface Program
Throws:
Exception

newInstance

public CompiledComponent newInstance()
                              throws Exception
Description copied from interface: Program
Create new instance of the program.

Specified by:
newInstance in interface Program
Throws:
Exception


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.