
org.mule.modules.ftpclient.ClientFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ftp-client-connector Show documentation
Show all versions of ftp-client-connector Show documentation
A Mule connector for ftp/sftp.
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