org.objectweb.jonas_ws.wsgen.wrapper
Class WsGenWrapper

java.lang.Object
  extended by org.objectweb.jonas_ws.wsgen.wrapper.WsGenWrapper

public class WsGenWrapper
extends Object

WSGen wrapper Used to launch WsGen in DeployFile of JSR 88

Author:
Florent Benoit

Constructor Summary
WsGenWrapper()
          Empty constructor.
 
Method Summary
 String callWsGenExecute(String fileName)
          Wrapper around WsGen.execute(String[]) method
 String callWsGenExecute(String fileName, Boolean unpacked)
          Wrapper around WsGen.execute(String[]) method
 boolean callWsGenIsInputModifed()
          Wrapper around WsGen.isModified() method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsGenWrapper

public WsGenWrapper()
Empty constructor.

Method Detail

callWsGenExecute

public String callWsGenExecute(String fileName)
                        throws Exception
Wrapper around WsGen.execute(String[]) method

Parameters:
fileName - name of the file
Returns:
name of the modified/built file
Throws:
Exception - If WsGen fails or if Reflection errors occurs

callWsGenExecute

public String callWsGenExecute(String fileName,
                               Boolean unpacked)
                        throws Exception
Wrapper around WsGen.execute(String[]) method

Parameters:
fileName - name of the file
unpacked - true if the result must be packed in a directory (default = false)
Returns:
name of the modified/built file
Throws:
Exception - If WsGen fails or if Reflection errors occurs

callWsGenIsInputModifed

public boolean callWsGenIsInputModifed()
                                throws Exception
Wrapper around WsGen.isModified() method

Returns:
true/false
Throws:
Exception - If WsGen fails or if Reflection errors occurs


Copyright © 2007 OW2 Consortium. All Rights Reserved.