|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.generators.genbase.generator.AbsGenerator
org.ow2.jonas.generators.genclientstub.generator.Generator
public class Generator
Generator used to generate Stubs for clients.
| Constructor Summary | |
|---|---|
Generator(Config config,
IEJBRefDesc ejbRef,
String intfStubClassName,
Archive archive)
Creates a new Generator with the given Config. |
|
| Method Summary | |
|---|---|
void |
addFiles(Archive archive)
Add generated files into an Archive |
void |
compile()
Compile generated java files into classes directory. |
void |
generate()
Generate stub files. |
| Methods inherited from class org.ow2.jonas.generators.genbase.generator.AbsGenerator |
|---|
getClasses, getConfig, getJavaSources, getLogger, getSources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Generator(Config config,
IEJBRefDesc ejbRef,
String intfStubClassName,
Archive archive)
throws GenBaseException
config - internal configuration object.ejbRef - reference to the ejb on which we want create the stubintfStubClassName - name of the interfacearchive - given ejbjar, webapp, ...
GenBaseException - When sources and target temporary directory
cannot be created| Method Detail |
|---|
public void generate()
throws ClientStubGenException
generate in class AbsGeneratorClientStubGenException - When generation fails.
public void compile()
throws ClientStubGenException
compile in class AbsGeneratorClientStubGenException - When compilation fails
public void addFiles(Archive archive)
throws ClientStubGenException
addFiles in class AbsGeneratorarchive - the archive destination of generated files.
ClientStubGenException - When files cannot be added in the given
Archive.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||