fr.paris.lutece.util.pool.service
Class LuteceConnectionFactory

java.lang.Object
  extended by fr.paris.lutece.util.pool.service.LuteceConnectionFactory

public final class LuteceConnectionFactory
extends Object

Factory to create LuteceConnection


Method Summary
static LuteceConnection newInstance(ConnectionPool pool, Connection connection)
          Builds a new proxied instance of the connection so we can use ConnectionPool with third party libraries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static LuteceConnection newInstance(ConnectionPool pool,
                                           Connection connection)
Builds a new proxied instance of the connection so we can use ConnectionPool with third party libraries.

Parameters:
pool - the connection pool to use when closing connection
connection - the actual connection
Returns:
a proxy implementing LuteceConnection


Copyright © 2014 Mairie de Paris. All Rights Reserved.