cuba.util.codegen
Class AdapterGenerator

java.lang.Object
  extended by cuba.util.Generator
      extended by cuba.util.codegen.AdapterGenerator

public class AdapterGenerator
extends Generator

Generator for adapter classes and interfaces Input processing is based on XmlReader and can be configured for different XML parser frameworks accordingly.

Author:
Jan Lessner

Field Summary
static int TYPE_EJB
           
static int TYPE_NONE
           
static int TYPE_WIRED
           
static int TYPE_WS
           
 
Constructor Summary
AdapterGenerator()
           
 
Method Summary
 GeneratorResult generate(CUBAComponent component, AdapterGeneratorOptions options)
           
 cuba.util.codegen.AbstractAdapterGenerator instanciateEJB3Generator(CUBAComponent component, java.lang.String internalInterfacePackage, java.lang.String externalInterfacePackage, java.lang.String implPackage, AdapterGeneratorOptions options)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class cuba.util.Generator
checkComponent, checkComponents, readComponents, syncException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NONE

public static final int TYPE_NONE
See Also:
Constant Field Values

TYPE_EJB

public static final int TYPE_EJB
See Also:
Constant Field Values

TYPE_WIRED

public static final int TYPE_WIRED
See Also:
Constant Field Values

TYPE_WS

public static final int TYPE_WS
See Also:
Constant Field Values
Constructor Detail

AdapterGenerator

public AdapterGenerator()
Method Detail

instanciateEJB3Generator

public cuba.util.codegen.AbstractAdapterGenerator instanciateEJB3Generator(CUBAComponent component,
                                                                           java.lang.String internalInterfacePackage,
                                                                           java.lang.String externalInterfacePackage,
                                                                           java.lang.String implPackage,
                                                                           AdapterGeneratorOptions options)
                                                                    throws GeneratorException
Throws:
GeneratorException

generate

public GeneratorResult generate(CUBAComponent component,
                                AdapterGeneratorOptions options)
                         throws GeneratorException
Throws:
GeneratorException

main

public static void main(java.lang.String[] args)