org.mc4j.ems.connection
Class ConnectionFactory

java.lang.Object
  extended by 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

Field Summary
static ConnectionTypeDescriptor[] CONNECTION_DESCRIPTORS
           
 
Constructor Summary
ConnectionFactory()
           
 
Method Summary
 EmsConnection connect(ConnectionSettings connectionSettings)
           
 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)
           
static java.util.List<ConnectionTypeDescriptor> getConnectionTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTION_DESCRIPTORS

public static final ConnectionTypeDescriptor[] CONNECTION_DESCRIPTORS
Constructor Detail

ConnectionFactory

public ConnectionFactory()
Method Detail

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)