Example usage for org.apache.commons.pool BaseKeyedPoolableObjectFactory subclass-usage

List of usage examples for org.apache.commons.pool BaseKeyedPoolableObjectFactory subclass-usage

Introduction

In this page you can find the example usage for org.apache.commons.pool BaseKeyedPoolableObjectFactory subclass-usage.

Usage

From source file org.wso2.carbon.identity.thrift.authentication.client.internal.pool.SecureClientPoolFactory.java

/**
 * Thrift Authenticator Client factory for both ssl, https connections
 */
public class SecureClientPoolFactory extends BaseKeyedPoolableObjectFactory {

    private TSSLTransportFactory.TSSLTransportParameters params;

From source file TestSoftRef.java

    public class SkilledEmployeeFactory extends BaseKeyedPoolableObjectFactory {

        public Object makeObject(Object key) {
            if (key == null || !(key instanceof String) || ((String) key).length() == 0)
                throw new IllegalArgumentException("Invalid key specified");
            return new SkilledEmployee(key.toString());

From source file org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.java

public class SecureClientPoolFactory extends BaseKeyedPoolableObjectFactory {

    private TSSLTransportFactory.TSSLTransportParameters params;
    private String trustStorePassword;
    private String trustStore;

From source file de.escidoc.core.common.util.xml.transformer.PoolableTransformerFactory.java

/**
 * {@link BaseKeyedPoolableObjectFactory} implementation creating {@link Transformer} objects using a {@link
 * TransformerFactory}.<br/> The key must be a {@link String}, otherwise makeObject throws an exception. It should be a
 * namespaceUri that can be mapped to a style sheet. If this mapping fails, the specified default style sheet is used.
 *
 * @author Torsten Tetteroo

From source file TestObjectPool.java

    public class SkilledEmployeeFactory extends BaseKeyedPoolableObjectFactory {

        public Object makeObject(Object key) {
            if (key == null || !(key instanceof String) || ((String) key).length() == 0)
                throw new IllegalArgumentException("Invalid key specified");
            return new SkilledEmployee(key.toString());

From source file org.batoo.jpa.core.impl.jdbc.PreparedStatementFactory.java

/**
 * A Factory to implement preparation of {@link PreparedStatementImpl}s
 * 
 * @author hceylan
 * @since $version
 */

From source file org.robotninjas.barge.rpc.netty.RpcChannelFactory.java

@Immutable
class RpcChannelFactory extends BaseKeyedPoolableObjectFactory<Object, ListenableFuture<NettyRpcChannel>> {

    private static final Logger LOGGER = LoggerFactory.getLogger(RpcChannelFactory.class);

    private final RpcClient client;

From source file org.robotninjas.barge.rpc.RpcChannelFactory.java

@Immutable
class RpcChannelFactory extends BaseKeyedPoolableObjectFactory<Object, ListenableFuture<NettyRpcChannel>> {

    private static final Logger LOGGER = LoggerFactory.getLogger(RpcChannelFactory.class);

    private final RpcClient client;