public class ConnectionFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ConnectionTypeDescriptor[] |
CONNECTION_DESCRIPTORS |
static java.lang.String |
COPY_JARS_TO_TEMP |
static java.lang.String |
JAR_TEMP_DIR |
static java.lang.String |
USE_CONTEXT_CLASSLOADER |
| Constructor and Description |
|---|
ConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
EmsConnection |
connect(ConnectionSettings connectionSettings)
Deprecated.
Use getConnectionProvider.connect... hold on to the connection provider to reopen the connection
|
void |
discoverServerClasses(ConnectionSettings connectionSettings)
This will find server classes for a ConnectionSettings by using the supplied
LibraryURI of the ConnectionSettings and searching for the ConnectClassPathEntries
of the ConnectionType supplied with the settings.
|
java.io.File |
getChild(java.io.File directory,
java.lang.String childName) |
ConnectionProvider |
getConnectionProvider(ConnectionSettings connectionSettings)
Build a connection provider given the settings.
|
static java.util.List<ConnectionTypeDescriptor> |
getConnectionTypes() |
public static final java.lang.String COPY_JARS_TO_TEMP
public static final java.lang.String JAR_TEMP_DIR
public static final java.lang.String USE_CONTEXT_CLASSLOADER
public static final ConnectionTypeDescriptor[] CONNECTION_DESCRIPTORS
public static java.util.List<ConnectionTypeDescriptor> getConnectionTypes()
public ConnectionProvider getConnectionProvider(ConnectionSettings connectionSettings)
connectionSettings - the connection settings for the connectionpublic EmsConnection connect(ConnectionSettings connectionSettings)
connectionSettings - the settings to build the connection onpublic void discoverServerClasses(ConnectionSettings connectionSettings)
connectionSettings - the ConnectionSettings to update with recommended class
path entriespublic java.io.File getChild(java.io.File directory,
java.lang.String childName)