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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Vadim Gritsenko

Method Summary
 ComponentHandler getHandler(ComponentManager manager, Context context, RoleManager roles, LogkitLoggerManager logKitManager)
          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

String getName()
Get the name of this program.


getHandler

ComponentHandler getHandler(ComponentManager manager,
                            Context context,
                            RoleManager roles,
                            LogkitLoggerManager logKitManager)
                            throws Exception
Get ComponentHandler which holds instances of this program.

Throws:
Exception

newInstance

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

Throws:
Exception


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.