public final class LaunchingDICookie extends AbstractDICookie
DebuggerInfo di = DebuggerInfo.create ( "My First Launching Debugger Info", new Object [] { LaunchingDICookie.create ( "examples.texteditor.Ted", new String [] {}, "c:\\nb\\settings\\sampledir", true ) } ); DebuggerManager.getDebuggerManager ().startDebugging (di);
Modifier and Type | Field and Description |
---|---|
static String |
ID
Public ID used for registration in Meta-inf/debugger.
|
Modifier and Type | Method and Description |
---|---|
static LaunchingDICookie |
create(String mainClassName,
String[] args,
String classPath,
boolean suspend)
Creates a new instance of LaunchingDICookie for given parameters.
|
static LaunchingDICookie |
create(String mainClassName,
String commandLine,
String address,
boolean suspend)
Creates a new instance of LaunchingDICookie for given parameters.
|
String |
getClassName()
Returns main class name.
|
String |
getCommandLine()
Returns command line to be used.
|
boolean |
getSuspend()
Returns suspended state.
|
static String |
getTransportName()
Returns type of transport to be used.
|
com.sun.jdi.VirtualMachine |
getVirtualMachine()
Creates a new instance of VirtualMachine for this DebuggerInfo Cookie.
|
public static final String ID
public static LaunchingDICookie create(String mainClassName, String commandLine, String address, boolean suspend)
mainClassName
- a name or main classcommandLine
- command line of debugged JVMaddress
- a address to listen onsuspend
- if true session will be suspendedpublic static LaunchingDICookie create(String mainClassName, String[] args, String classPath, boolean suspend)
mainClassName
- a name or main classargs
- command line argumentsclassPath
- a classPathsuspend
- if true session will be suspendedpublic static String getTransportName()
public String getClassName()
public boolean getSuspend()
public String getCommandLine()
public com.sun.jdi.VirtualMachine getVirtualMachine() throws IOException, com.sun.jdi.connect.IllegalConnectorArgumentsException, com.sun.jdi.connect.VMStartException
getVirtualMachine
in class AbstractDICookie
ConnectException
- When a connection is refusedIOException
com.sun.jdi.connect.IllegalConnectorArgumentsException
com.sun.jdi.connect.VMStartException