net.groboclown.junit.jpda.v1
Class ConnectorFactory

java.lang.Object
  |
  +--net.groboclown.junit.jpda.v1.ConnectorFactory

public class ConnectorFactory
extends Object

Creates a JpdaConnection to a VM using JDI (from JPDA). Currently, the only supported creation is via launching a new VM.


Field Summary
protected static ConnectorFactory s_instance
           
 
Constructor Summary
protected ConnectorFactory()
          Constructor - set to protected so that only subclasses can use it.
 
Method Summary
static ConnectorFactory getInstance()
          Retrieve the singleton instance.
 JpdaConnector launchVM(AsyncTest testClass)
          Create a new Connector by launching a new VM.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

s_instance

protected static ConnectorFactory s_instance
Constructor Detail

ConnectorFactory

protected ConnectorFactory()
Constructor - set to protected so that only subclasses can use it.
Method Detail

getInstance

public static ConnectorFactory getInstance()
Retrieve the singleton instance.

launchVM

public JpdaConnector launchVM(AsyncTest testClass)
Create a new Connector by launching a new VM. The new VM will execute AsyncTest's main method, using the given testClass class as the test to execute.


Written under the LGPL