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(java.util.Properties props)
          Prepares the ConnectionFactory for use.
 

Method Detail

init

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

Parameters:
props -

getConnection

Connection getConnection(ServerMetaData server)
                         throws java.io.IOException
Get a connection from the factory

Returns:
Connection
Throws:
java.io.IOException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.