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

java.lang.Object
  extended by org.apache.cocoon.components.language.programming.java.JavaProgram
All Implemented Interfaces:
Program

public class JavaProgram
extends Object
implements Program

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

Version:
CVS $Id: JavaProgram.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Vadim Gritsenko

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

Field Detail

program

protected Class program
Constructor Detail

JavaProgram

public JavaProgram(Class program)
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(ComponentManager manager,
                                   Context context,
                                   RoleManager roles,
                                   LogkitLoggerManager logKitManager)
                            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-2010 The Apache Software Foundation. All Rights Reserved.