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

All Known Implementing Classes:
JavaProgram, JavascriptProgram

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,v 1.2.2.1 2002/06/07 09:34:23 cziegeler Exp $
Author:
Vadim Gritsenko

Method Summary
 org.apache.avalon.excalibur.component.ComponentHandler getHandler(org.apache.avalon.framework.component.ComponentManager manager, org.apache.avalon.framework.context.Context context, org.apache.avalon.excalibur.component.RoleManager roles, org.apache.avalon.excalibur.component.LogkitLoggerManager logKitManager)
          Get ComponentHandler which holds instances of this program.
 java.lang.String getName()
          Get the name of this program.
 CompiledComponent newInstance()
          Create new instance of the program.
 

Method Detail

getName

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

getHandler

public org.apache.avalon.excalibur.component.ComponentHandler getHandler(org.apache.avalon.framework.component.ComponentManager manager,
                                                                         org.apache.avalon.framework.context.Context context,
                                                                         org.apache.avalon.excalibur.component.RoleManager roles,
                                                                         org.apache.avalon.excalibur.component.LogkitLoggerManager logKitManager)
                                                                  throws java.lang.Exception
Get ComponentHandler which holds instances of this program.

newInstance

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


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.