org.mc4j.ems.connection
Class ConnectionFactory
java.lang.Object
org.mc4j.ems.connection.ConnectionFactory
public class ConnectionFactory
- extends java.lang.Object
- Version:
- $Revision: 1.2 $($Author: ghinkl $ / $Date: 2006/04/12 19:11:33 $)
- Author:
- Greg Hinkle (ghinkle@users.sourceforge.net), Apr 5, 2005
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONNECTION_DESCRIPTORS
public static final ConnectionTypeDescriptor[] CONNECTION_DESCRIPTORS
ConnectionFactory
public ConnectionFactory()
getConnectionTypes
public static java.util.List<ConnectionTypeDescriptor> getConnectionTypes()
connect
public EmsConnection connect(ConnectionSettings connectionSettings)
discoverServerClasses
public 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.
This method should only be called once. If the entries need to be reset, you should
first clear the settings' classpath entries. This method appends class path entries
to the existing list.
- Parameters:
connectionSettings - the ConnectionSettings to update with recommeneded class
path entries
getChild
public java.io.File getChild(java.io.File directory,
java.lang.String childName)