Class SwingProcessImpl
- java.lang.Object
-
- org.webswing.server.services.swingprocess.SwingProcessImpl
-
- All Implemented Interfaces:
SwingProcess
public class SwingProcessImpl extends Object implements SwingProcess
-
-
Constructor Summary
Constructors Constructor Description SwingProcessImpl(SwingProcessConfig config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddestroy(int delayMs)voidexecute()ProcessExitListenergetCloseListener()SwingProcessConfiggetConfig()booleanisForceKilled()booleanisRunning()voidsetProcessExitListener(ProcessExitListener closeListener)static String[]translateCommandline(String toProcess)Copy of method from Apache Ant - Commandline class.
-
-
-
Constructor Detail
-
SwingProcessImpl
public SwingProcessImpl(SwingProcessConfig config)
-
-
Method Detail
-
execute
public void execute() throws Exception- Specified by:
executein interfaceSwingProcess- Throws:
Exception
-
destroy
public void destroy()
-
destroy
public void destroy(int delayMs)
- Specified by:
destroyin interfaceSwingProcess
-
isRunning
public boolean isRunning()
- Specified by:
isRunningin interfaceSwingProcess
-
translateCommandline
public static String[] translateCommandline(String toProcess) throws Exception
Copy of method from Apache Ant - Commandline class. Crack a command line.- Parameters:
toProcess- the command line to process.- Returns:
- the command line broken into strings. An empty or null toProcess parameter results in a zero sized array.
- Throws:
Exception
-
isForceKilled
public boolean isForceKilled()
- Specified by:
isForceKilledin interfaceSwingProcess
-
getCloseListener
public ProcessExitListener getCloseListener()
-
setProcessExitListener
public void setProcessExitListener(ProcessExitListener closeListener)
- Specified by:
setProcessExitListenerin interfaceSwingProcess
-
getConfig
public SwingProcessConfig getConfig()
- Specified by:
getConfigin interfaceSwingProcess
-
-