org.objectweb.jonas_lib.genclientstub.generator.Generator Class Reference

Collaboration diagram for org.objectweb.jonas_lib.genclientstub.generator.Generator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Generator (Config config, EjbRefDesc ejbRef, String intfStubClassName, Archive archive) throws GenBaseException
void generate () throws ClientStubGenException
void compile () throws ClientStubGenException
void addFiles (Archive archive) throws ClientStubGenException

Detailed Description

Generator used to generate Stubs for clients
Author:
Florent Benoit

Definition at line 56 of file Generator.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.genclientstub.generator.Generator.Generator Config  config,
EjbRefDesc  ejbRef,
String  intfStubClassName,
Archive  archive
throws GenBaseException
 

Creates a new Generator with the given Config.

Parameters:
config internal configuration object.
ejbRef reference to the ejb on which we want create the stub
intfStubClassName name of the interface
archive given ejbjar, webapp, ...
Exceptions:
GenBaseException When sources and target temporary directory cannot be created

Definition at line 87 of file Generator.java.


Member Function Documentation

void org.objectweb.jonas_lib.genclientstub.generator.Generator.addFiles Archive  archive  )  throws ClientStubGenException
 

Add generated files into an Archive

Parameters:
archive the archive destination of generated files.
Exceptions:
ClientStubGenException When files cannot be added in the given Archive.

Definition at line 199 of file Generator.java.

References org.objectweb.jonas_lib.genbase.archive.Archive.addDirectory(), and org.objectweb.jonas_lib.genbase.archive.Archive.addDirectoryIn().

Referenced by org.objectweb.jonas_lib.genclientstub.modifier.AbsArchiveModifier.generateFoundStubs(), org.objectweb.jonas_lib.genclientstub.modifier.WebAppModifier.modify(), org.objectweb.jonas_lib.genclientstub.modifier.EjbJarModifier.modify(), and org.objectweb.jonas_lib.genclientstub.modifier.ClientModifier.modify().

Here is the call graph for this function:

void org.objectweb.jonas_lib.genclientstub.generator.Generator.compile  )  throws ClientStubGenException
 

Compile generated java files into classes directory. Do nothing in case of clientstub generator as all classes are generated

Exceptions:
ClientStubGenException When compilation fails

Definition at line 190 of file Generator.java.

Referenced by org.objectweb.jonas_lib.genclientstub.modifier.AbsArchiveModifier.generateFoundStubs(), org.objectweb.jonas_lib.genclientstub.modifier.WebAppModifier.modify(), org.objectweb.jonas_lib.genclientstub.modifier.EjbJarModifier.modify(), and org.objectweb.jonas_lib.genclientstub.modifier.ClientModifier.modify().

void org.objectweb.jonas_lib.genclientstub.generator.Generator.generate  )  throws ClientStubGenException
 

Generate stub files.

Exceptions:
ClientStubGenException When generation fails.

Definition at line 98 of file Generator.java.

References org.objectweb.common.Cmd.addArgument(), org.objectweb.common.Cmd.addArguments(), org.objectweb.jonas_lib.loader.AbsModuleClassLoader.getClasspath(), org.objectweb.jonas_lib.deployment.api.EjbRefDesc.getHome(), org.objectweb.jonas_lib.I18n.getMessage(), org.objectweb.jonas_lib.genbase.archive.J2EEArchive.getModuleClassloader(), org.objectweb.common.Cmd.run(), and org.objectweb.common.Cmd.toString().

Referenced by org.objectweb.jonas_lib.genclientstub.modifier.AbsArchiveModifier.generateFoundStubs(), org.objectweb.jonas_lib.genclientstub.modifier.WebAppModifier.modify(), org.objectweb.jonas_lib.genclientstub.modifier.EjbJarModifier.modify(), and org.objectweb.jonas_lib.genclientstub.modifier.ClientModifier.modify().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:13:02 2005 for JOnAS by  doxygen 1.3.9.1