/** * Sets the object factory used by the pool. * * @param factory KeyedPoolableObjectFactory used by the pool * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { synchronized (lock) { keyedPool.setFactory(factory); } }
/** * Sets the object factory associated with the pool * * @param factory object factory * @deprecated to be removed in version 2.0 */ @Deprecated public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(factory); }
/** * {@inheritDoc} * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(factory); }
/** * Sets the PoolableObjectFactory for the pool. * * @param factory new PoolableObjectFactory * @deprecated to be removed in version 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<V> factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(adapt(factory)); }
public void setFactory(final KeyedPoolableObjectFactory factory) throws IllegalStateException, UnsupportedOperationException { synchronized (lock) { keyedPool.setFactory(factory); } }
public void setFactory(final KeyedPoolableObjectFactory factory) throws IllegalStateException, UnsupportedOperationException { synchronized (lock) { keyedPool.setFactory(factory); } }
public void setFactory(final KeyedPoolableObjectFactory factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(factory); }
/** * Sets the object factory used by the pool. * * @param factory KeyedPoolableObjectFactory used by the pool * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { synchronized (lock) { keyedPool.setFactory(factory); } }
/** * Sets the object factory associated with the pool * * @param factory object factory * @deprecated to be removed in version 2.0 */ @Deprecated public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(factory); }
/** * Sets the object factory used by the pool. * * @param factory KeyedPoolableObjectFactory used by the pool * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { synchronized (lock) { keyedPool.setFactory(factory); } }
/** * {@inheritDoc} * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(factory); }
/** * Sets the object factory associated with the pool * * @param factory object factory * @deprecated to be removed in version 2.0 */ @Deprecated public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(factory); }
/** * {@inheritDoc} * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(factory); }
/** * Sets the PoolableObjectFactory for the pool. * * @param factory new PoolableObjectFactory * @deprecated to be removed in version 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<V> factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(adapt(factory)); }
/** * Sets the PoolableObjectFactory for the pool. * * @param factory new PoolableObjectFactory * @deprecated to be removed in version 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<V> factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(adapt(factory)); }
public void setFactory(final PoolableObjectFactory factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(adapt(factory)); }
public void setFactory(final PoolableObjectFactory factory) throws IllegalStateException, UnsupportedOperationException { keyedPool.setFactory(adapt(factory)); }
public Object makeObject() throws Exception { Connection conn = _connFactory.createConnection(); if (conn == null) { throw new IllegalStateException("Connection factory returned null from createConnection"); } initializeConnection(conn); if(null != _stmtPoolFactory) { KeyedObjectPool stmtpool = _stmtPoolFactory.createPool(); conn = new PoolingConnection(conn,stmtpool); stmtpool.setFactory((PoolingConnection)conn); } return new PoolableConnection(conn,_pool,_config); }
public Object makeObject() throws Exception { Connection conn = _connFactory.createConnection(); if (conn == null) { throw new IllegalStateException("Connection factory returned null from createConnection"); } initializeConnection(conn); if(null != _stmtPoolFactory) { KeyedObjectPool stmtpool = _stmtPoolFactory.createPool(); conn = new PoolingConnection(conn,stmtpool); stmtpool.setFactory((PoolingConnection)conn); } return new PoolableConnection(conn,_pool,_config); }
synchronized public Object makeObject() throws Exception { Connection conn = _connFactory.createConnection(); if(null != _stmtPoolFactory) { KeyedObjectPool stmtpool = _stmtPoolFactory.createPool(); conn = new PoolingConnection(conn,stmtpool); stmtpool.setFactory((PoolingConnection)conn); } return new PoolableConnection(conn,_pool,_config); }