org.apache.cocoon.components.language.programming
Interface Program

All Known Implementing Classes:
JavaProgram, JavascriptProgram, PythonProgram

public interface Program

This interface states the functionality of a program. For compilable languages this is the wrapper for a Java Class object.

Version:
CVS $Id: Program.java 125152 2005-01-14 09:05:24Z cziegeler $
Author:
Vadim Gritsenko

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.
 

Method Detail

getName

public String getName()
Get the name of this program.


getHandler

public ComponentHandler getHandler(ServiceManager manager,
                                   Context context)
                            throws Exception
Get ComponentHandler which holds instances of this program.

Throws:
Exception

newInstance

public CompiledComponent newInstance()
                              throws Exception
Create new instance of the program.

Throws:
Exception


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