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 org.openrepose.commons.config.parser.jaxb.UnmarshallerPoolableObjectFactory.java

/**
 * This uses the { @link http://en.wikipedia.org/wiki/Strategy_pattern  Strategy } pattern to parameterize the creation
 * of  { @link org.openrepose.commons.config.parser.jaxb.UnmarshallerValidator UnmarshallerValidator}.
 * <p/>
 * TODO: do we really need a pool of objects for JAXB unmarshalling for only one XSD? This seems excessive...
 * TODO: Especially since the JAXBContext is passed in anyway! There's probably no reason for this

From source file org.openrepose.commons.utils.digest.MessageDigestConstructionStrategy.java

public class MessageDigestConstructionStrategy extends BasePoolableObjectFactory<MessageDigest> {

    private final String digestSpecName;

    public MessageDigestConstructionStrategy(String digestSpecName) {
        this.digestSpecName = digestSpecName;

From source file org.openrepose.filters.translation.xslt.xmlfilterchain.XmlFilterChainFactory.java

public class XmlFilterChainFactory extends BasePoolableObjectFactory<XmlFilterChain> {

    private final XmlFilterChainBuilder builder;
    private final TranslationBase translation;
    private final String configRoot;
    private final String config;

From source file org.ow2.petals.activitibpmn.incoming.integration.MarshalerFactory.java

/**
 * The {@link PoolableObjectFactory} to create JAXB marshalers
 * 
 * @author Christophe DENEUX - Linagora
 *
 */

From source file org.ow2.petals.activitibpmn.incoming.integration.UnmarshalerFactory.java

/**
 * The {@link PoolableObjectFactory} to create JAXB unmarshalers
 * 
 * @author Christophe DENEUX - Linagora
 *
 */

From source file org.pivot4j.datasource.OlapConnectionFactory.java

public class OlapConnectionFactory extends BasePoolableObjectFactory<OlapConnection> {

    private Logger logger = LoggerFactory.getLogger(getClass());

    private OlapDataSource dataSource;

From source file org.robotninjas.riemann.pool.ConnectionFactory.java

class ConnectionFactory extends BasePoolableObjectFactory<RiemannTcpConnection> {

    private final RiemannTcpClient client;

    public ConnectionFactory(RiemannTcpClient client) {
        this.client = client;

From source file org.simbasecurity.core.util.PasswordEncryptorFactory.java

public class PasswordEncryptorFactory extends BasePoolableObjectFactory<ConfigurablePasswordEncryptor> {

    private final static String ALGORITHM = "SHA-256";

    @Override
    public ConfigurablePasswordEncryptor makeObject() throws Exception {

From source file org.soulwing.oaq.ServerSessionFactory.java

/**
 * A {@link PoolableObjectFactory} that produces {@link ServerSession}
 * objects for an details.
 *
 * @author Carl Harris
 */

From source file org.zenoss.lib.tsdb.OpenTsdbClientFactory.java

/**
 *  A factory for creating OpenTsdbClients.
 */
public class OpenTsdbClientFactory extends BasePoolableObjectFactory<OpenTsdbClient> {

    //  put: HBase error: 1000 RPCs waiting on "tsdb,,1398325180794.54ad8182f2f2a0a1cc6d39ba26ca7f64." to come back online