org.objectweb.jonas_lib.files
Class WsGenChecker

java.lang.Object
  extended by org.objectweb.jonas_lib.files.WsGenChecker

public class WsGenChecker
extends java.lang.Object

Check if a file has been WsGen-ized. If not, apply WsGen on it and return the new archive name.

Author:
Guillaume Sauthier

Constructor Summary
WsGenChecker(javax.management.MBeanServer ms, java.lang.String filename, javax.management.ObjectName j2eeServerON)
          Creates a new Chceker for WsGen
 
Method Summary
 java.lang.String checkWsGen()
          Check that WsGen have been applied on the given file If it was not done, it run WsGen against the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsGenChecker

public WsGenChecker(javax.management.MBeanServer ms,
                    java.lang.String filename,
                    javax.management.ObjectName j2eeServerON)
Creates a new Chceker for WsGen

Parameters:
ms - MBeanServer to use
filename - file to be checked
j2eeServerON - J2EEServer ObjectName
Method Detail

checkWsGen

public java.lang.String checkWsGen()
                            throws CheckerException
Check that WsGen have been applied on the given file If it was not done, it run WsGen against the file.

Returns:
Returns the path to the modified archive
Throws:
CheckerException - FIXME