All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.modules.ftpclient.ClientFactory Maven / Gradle / Ivy

The newest version!
package org.mule.modules.ftpclient;

import org.apache.commons.pool.PoolableObjectFactory;
import org.apache.commons.pool.impl.GenericObjectPool;

public abstract class ClientFactory implements PoolableObjectFactory {
    private GenericObjectPool pool;

    public void setPool(GenericObjectPool pool) {
        this.pool = pool;
    }

    public GenericObjectPool getPool() {
        return pool;
    }

    @Override
    public void destroyObject(T client) throws Exception {
        client.destroy();
    }

    @Override
    public boolean validateObject(T client) {
        return client.validate();
    }

    @Override
    public void activateObject(@SuppressWarnings("unused") T client) {
        // no op
    }

    @Override
    public void passivateObject(@SuppressWarnings("unused") T client) {
        // no op
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy