it.imolinfo.jbi4ejb.configuration
Class InterfaceExtractorUtil

java.lang.Object
  extended by it.imolinfo.jbi4ejb.configuration.InterfaceExtractorUtil

public final class InterfaceExtractorUtil
extends java.lang.Object

The Class InterfaceExtractorUtil.


Method Summary
static java.lang.String extractEarClassesInTempDirectory(java.lang.String earPath)
          Extract all the ear classes in a temporary directory, to generate the WSDL.
static java.util.List<java.lang.String> extractRemoteInterfaceFromJar(java.lang.String jarPath)
          Extract remote interfaces from the jar.
static java.util.List<java.lang.String> extractRemoteInterfacesFromEar(java.lang.String earPath)
          Extract remote interfaces from ear.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

extractRemoteInterfacesFromEar

public static java.util.List<java.lang.String> extractRemoteInterfacesFromEar(java.lang.String earPath)
                                                                       throws EJBWSDLGenerationException
Extract remote interfaces from ear. Look for the application.xml. For each *.jar, extracts the jar names andfore each jar extracts the remote interfaces.

Parameters:
earPath - The ear path
Returns:
the list< string> of the remote interfaces
Throws:
EJBWSDLGenerationException - If some problem occurs in extracting the interfaces

extractRemoteInterfaceFromJar

public static java.util.List<java.lang.String> extractRemoteInterfaceFromJar(java.lang.String jarPath)
                                                                      throws EJBWSDLGenerationException
Extract remote interfaces from the jar. Look for the ejb-jar.xml (ejb <2.1) and the ejb3.0 annotations

Parameters:
jarPath - The ear path
Returns:
the list< string> of the remote interfaces
Throws:
EJBWSDLGenerationException - If some problem occurs in extracting the interfaces

extractEarClassesInTempDirectory

public static java.lang.String extractEarClassesInTempDirectory(java.lang.String earPath)
                                                         throws EJBWSDLGenerationException
Extract all the ear classes in a temporary directory, to generate the WSDL.

Parameters:
earPath - The ear file path
Returns:
the temporary directory path
Throws:
EJBWSDLGenerationException - If some problem occurs in WSDL generation


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