Package com.vmware.connection
Class ConnectionFactory
- java.lang.Object
-
- com.vmware.connection.ConnectionFactory
-
public class ConnectionFactory extends java.lang.ObjectHolds the logic for how to construct a connection class. We allow the specific implementation of the connection class to change underneath the Connection interface. The specific implementation
-
-
Constructor Summary
Constructors Constructor Description ConnectionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionnewConnection()Constructs a connection class based on the system property com.vmware.connection.Connection=some.class.name
-
-
-
Method Detail
-
newConnection
public static Connection newConnection() throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
Constructs a connection class based on the system property com.vmware.connection.Connection=some.class.name- Returns:
- instance of a class that implements the Connection interface
- Throws:
java.lang.ClassNotFoundExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationException
-
-