it.imolinfo.jbi4ejb.webservice.generator
Class WSDLGenerator

java.lang.Object
  extended by it.imolinfo.jbi4ejb.webservice.generator.WSDLGenerator

public final class WSDLGenerator
extends java.lang.Object

Class to generate WSDL file with Jbi4Ejb extensions.

Author:
Marco Piraccini

Method Summary
static java.io.File createWsdlFromClassesDirectory(java.lang.String className, java.io.File classesDirectory, java.lang.String wsdlFileName, WSDLDescriptor descriptor, java.io.File tempDir)
          Creates the wsdl interface, getting the classes from a directory.
static java.io.File createWsdlFromEar(java.lang.String className, java.lang.String earJarPath, java.lang.String wsdlFileName, WSDLDescriptor descriptor)
          Creates the wsdl interface, getting the classes from a Ear.
static java.io.File createWsdlFromJar(java.lang.String className, java.lang.String ejbJarPath, java.lang.String wsdlFileName, WSDLDescriptor descriptor, java.io.File tempDir)
          Creates the wsdl interface, getting the classes from the jar.
static java.util.Properties getClassesID(java.lang.String remoteInterface, java.io.File classesDir)
          Gets the classes ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createWsdlFromJar

public static java.io.File createWsdlFromJar(java.lang.String className,
                                             java.lang.String ejbJarPath,
                                             java.lang.String wsdlFileName,
                                             WSDLDescriptor descriptor,
                                             java.io.File tempDir)
                                      throws EJBWSDLGenerationException
Creates the wsdl interface, getting the classes from the jar.

Parameters:
className - The interface class name
ejbJarPath - The ejb jar path
wsdlFileName - The WSDL filename (to create)
descriptor - The WSDL descriptor
tempDir - The temporary directory to use
Returns:
the WSDL file
Throws:
EJBWSDLGenerationException - If some problem occurs

createWsdlFromEar

public static java.io.File createWsdlFromEar(java.lang.String className,
                                             java.lang.String earJarPath,
                                             java.lang.String wsdlFileName,
                                             WSDLDescriptor descriptor)
                                      throws EJBWSDLGenerationException
Creates the wsdl interface, getting the classes from a Ear.

Parameters:
className - The interface class name
earJarPath - The ear jar path
wsdlFileName - The WSDL filename (to create)
descriptor - The WSDL descriptor
Returns:
the WSDL file
Throws:
EJBWSDLGenerationException - If some problem occurs

createWsdlFromClassesDirectory

public static java.io.File createWsdlFromClassesDirectory(java.lang.String className,
                                                          java.io.File classesDirectory,
                                                          java.lang.String wsdlFileName,
                                                          WSDLDescriptor descriptor,
                                                          java.io.File tempDir)
                                                   throws EJBWSDLGenerationException
Creates the wsdl interface, getting the classes from a directory. The classes are copied to the temporary directory to omake all the needed bytecode transformations.

Parameters:
className - The interface class name
classesDirectory - The directory where the classes are
wsdlFileName - The WSDL filename (to create)
descriptor - The WSDL descriptor
tempDir - The temporary directory to use
Returns:
the WSDL file
Throws:
EJBWSDLGenerationException - If some problem occurs

getClassesID

public static java.util.Properties getClassesID(java.lang.String remoteInterface,
                                                java.io.File classesDir)
                                         throws EJBWSDLGenerationException
Gets the classes ID.

Parameters:
remoteInterface - The remote interface
classesDir - Where the classes are
Returns:
the classes ID
Throws:
EJBWSDLGenerationException - If some problem occurs


Copyright © 2007-2008 Imola Informatica. All Rights Reserved.