org.apache.cocoon.components.language.programming.java
Class JavaProgram

java.lang.Object
  |
  +--org.apache.cocoon.components.language.programming.java.JavaProgram
All Implemented Interfaces:
Program

public class JavaProgram
extends java.lang.Object
implements Program

This represents program in Java language. It wraps Java Class object.

Version:
CVS $Id: JavaProgram.java,v 1.2 2002/02/22 07:00:09 cziegeler Exp $
Author:
Vadim Gritsenko

Field Summary
protected  java.lang.Class program
           
 
Constructor Summary
JavaProgram(java.lang.Class program)
           
 
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.logger.LogKitManager 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

program

protected java.lang.Class program
Constructor Detail

JavaProgram

public JavaProgram(java.lang.Class program)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Program
Get the name of this program.
Specified by:
getName in interface 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.logger.LogKitManager logKitManager)
                                                                  throws java.lang.Exception
Description copied from interface: Program
Get ComponentHandler which holds instances of this program.
Specified by:
getHandler in interface Program

newInstance

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


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