@Test public void shouldUseDLCFByDefault() throws ErrorResultException { factory.getConnection(); verify(mockDLCF).getConnection(); }
public Connection getConnection() throws ErrorResultException { try { readLock.lock(); return factory.getConnection(); } finally { readLock.unlock(); } }
CTSConnectionFactory implements ConnectionFactory, ShutdownListener { public Connection getConnection() throws ErrorResultException { try { readLock.lock(); return factory.getConnection(); } finally { readLock.unlock(); } } }
CTSConnectionFactory implements ConnectionFactory, ShutdownListener { public Connection getConnection() throws ErrorResultException { try { readLock.lock(); return factory.getConnection(); } finally { readLock.unlock(); } } @Inject  CTSConnectionFactory(DataLayerConnectionFactory dlcf, LDAPConfig ldapConfig,
                                ExternalTokenConfig external, @Named(CoreTokenConstants.CTS_DEBUG) Debug debug); }
CTSConnectionFactory implements ConnectionFactory, ShutdownListener { public Connection getConnection() throws ErrorResultException { try { readLock.lock(); return factory.getConnection(); } finally { readLock.unlock(); } } @Inject  CTSConnectionFactory(DataLayerConnectionFactory dlcf, LDAPConfig ldapConfig,
                                ExternalTokenConfig external, @Named(CoreTokenConstants.CTS_DEBUG) Debug debug); void updateConnection(); Connection getConnection(); FutureResult<Connection> getConnectionAsync(ResultHandler<? super Connection> resultHandler); void close(); void shutdown(); }
CTSConnectionFactory implements ConnectionFactory, ShutdownListener { public Connection getConnection() throws ErrorResultException { try { readLock.lock(); return factory.getConnection(); } finally { readLock.unlock(); } } @Inject  CTSConnectionFactory(DataLayerConnectionFactory dlcf, LDAPConfig ldapConfig,
                                ExternalTokenConfig external, @Named(CoreTokenConstants.CTS_DEBUG) Debug debug); void updateConnection(); Connection getConnection(); FutureResult<Connection> getConnectionAsync(ResultHandler<? super Connection> resultHandler); void close(); void shutdown();  }