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

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

Introduction

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

Usage

From source file com.mijao.poc.jaxb.UnmarshallerPool.java

public class UnmarshallerPool extends BasePoolableObjectFactory {

    private static final Logger logger = LoggerFactory.getLogger(UnmarshallerPool.class);
    private JAXBContext context;

    public UnmarshallerPool(JAXBContext context) {

From source file org.exist.util.XMLReaderObjectFactory.java

/**
 * Factory to create new XMLReader objects on demand. The factory is used
 * by {@link org.exist.util.XMLReaderPool}.
 *
 * @author wolf
 */

From source file com.yahoo.sql4d.sql4ddriver.sql.MysqlAccessor.java

/**
 * Mysql Actions. Right now handle druid specific queries, split this into generic
 * mysql accessor and druid specific changes when this grows in size.
 *
 * @author srikalyan
 */

From source file org.daisy.pipeline.execution.rmi.PoolableRMIPipelineInstanceFactory.java

/**
 * A factory of {@link RMIPipelineInstanceWrapper} to be used with pools from
 * the Commons Pool library.
 * 
 * <p>
 * This factory is configured with the path to the Pipeline home directory, the

From source file com.lithium.flow.jetty.JettyClient.java

/**
 * @author Matt Ayres
 */
@WebSocket
public class JettyClient extends BasePoolableObjectFactory<Session> implements Closeable {
    private static final Logger log = Logs.getLogger();

From source file oauth.OAuthTokenValidaterStubFactory.java

/**
 * This follows object pool pattern to manage the stub for oauth validation service.
 */
public class OAuthTokenValidaterStubFactory extends BasePoolableObjectFactory {
    private static final Logger log = Logger.getLogger(OAuthTokenValidaterStubFactory.class);
    private HttpClient httpClient;

From source file TestObjectPool.java

    public class EmployeeFactory extends BasePoolableObjectFactory {

        public Object makeObject() {
            return new Employee();
        }

From source file com.yahoo.sql4d.indexeragent.sql.DBAccessor.java

/**
 *
 * @author srikalyan
 */
public class DBAccessor extends BasePoolableObjectFactory<Tuple2<DataSource, Connection>> {

From source file org.wso2.carbon.device.mgt.input.adapter.http.oauth.OAuthTokenValidaterStubFactory.java

/**
 * This follows object pool pattern to manage the stub for oauth validation service.
 */
public class OAuthTokenValidaterStubFactory extends BasePoolableObjectFactory {
    private static final Logger log = Logger.getLogger(OAuthTokenValidaterStubFactory.class);
    private HttpClient httpClient;

From source file org.wso2.carbon.andes.authentication.andes.oauth.OAuthTokenValidaterStubFactory.java

/**
 * This follows object pool pattern to manage the stub for oauth validation service.
 */
public class OAuthTokenValidaterStubFactory extends BasePoolableObjectFactory {
    private static final Logger log = Logger.getLogger(OAuthTokenValidaterStubFactory.class);
    OAuthConfigurationManager config;