org.openejb.client
Interface ConnectionFactory

All Known Implementing Classes:
HttpConnectionFactory, SocketConnectionFactory

public interface ConnectionFactory

Author:
John Mettraux, David Blevins

Method Summary
 Connection getConnection(ServerMetaData server)
          Get a connection from the factory
 void init(Properties props)
          Prepares the ConnectionFactory for use.
 

Method Detail

init

public void init(Properties props)
Prepares the ConnectionFactory for use. Called once right after the ConnectionFactory is instantiated.

Parameters:
props -

getConnection

public Connection getConnection(ServerMetaData server)
                         throws IOException
Get a connection from the factory

Returns:
Connection
Throws:
IOException


Copyright © 1999-2007 OpenEJB. All Rights Reserved.