|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4ejb.webservice.generator.EJBUtils
public final class EJBUtils
The Class EJBUtils.
This class contains the helper method added for the jbi4Ejb project.
The helper method in the Utils
class are from the jbi4corba project
Method Summary | |
---|---|
static void |
copyDirectory(java.io.File sourceLocation,
java.io.File targetLocation)
Copy directory. |
static void |
createStub(java.lang.String classesDir,
java.lang.String className,
java.util.List<java.lang.String> jarFilesName)
Creates the stub. |
static java.io.File |
createTempDir()
Creates a temporary directory. |
static void |
removeEJBRemoteInterface(java.lang.String interfaceClassName,
java.lang.String classesDirName)
Removes the implements java.rmi.Remote and throws java.rmi.RemoteException clauses,
using recursino (see EJB-53). |
static void |
tweakRemoteInterfaceGeneratedFromWSDL(java.lang.String portTypeClassName,
java.lang.String classesDirName)
Modify the interface generated from the WSDL, adding the correct application exceptions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.io.File createTempDir() throws java.io.IOException
null
if the creation has
failed even though a file has been created.
java.io.IOException
- if a file could not be created.public static void createStub(java.lang.String classesDir, java.lang.String className, java.util.List<java.lang.String> jarFilesName) throws EJBDeployException
classesDir
- The directory containing the classesclassName
- The class name to create the stubjarFilesName
- The jar lists
EJBDeployException
- If some problem occurspublic static void tweakRemoteInterfaceGeneratedFromWSDL(java.lang.String portTypeClassName, java.lang.String classesDirName) throws ClassGenerationException
org.codehaus.xfire.fault.FaultInfoException
in the
WSDL-generated interface. Adds the correct exception to the throws clause of the interface, with the java.rmi.RemoteException
The Exception classes are subclassed form java.lang.Exception
portTypeClassName
- The port type class nameclassesDirName
- The classes directory
tweakRemoteInterfaceGeneratedFromWSDL
ClassGenerationException
- If some problem occurspublic static void removeEJBRemoteInterface(java.lang.String interfaceClassName, java.lang.String classesDirName) throws ClassGenerationException
java.rmi.Remote
and throws java.rmi.RemoteException
clauses,
using recursino (see EJB-53).
interfaceClassName
- The port type class nameclassesDirName
- The classes directory where to save the file
tweakRemoteInterfaceGeneratedFromWSDL
ClassGenerationException
- If some problem occurspublic static void copyDirectory(java.io.File sourceLocation, java.io.File targetLocation) throws java.io.IOException
sourceLocation
- The source directorytargetLocation
- The target directory
java.io.IOException
- If some problem occurs in copying directory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |