org.ow2.petals.bc.ftp.connection
Class WrappedFTPClientFactory

java.lang.Object
  extended by org.ow2.petals.bc.ftp.connection.WrappedFTPClientFactory
All Implemented Interfaces:
org.apache.commons.pool.PoolableObjectFactory

public class WrappedFTPClientFactory
extends java.lang.Object
implements org.apache.commons.pool.PoolableObjectFactory

This factory create instance of FTPClient. It implements the lifecycle of the pool

Author:
”Mathieu CARROLLE - mathieu.carrolle@petalslink.com”

Constructor Summary
WrappedFTPClientFactory(FTPConnectionInfo connectionConfiguration, java.util.logging.Logger logger)
           
 
Method Summary
 void activateObject(java.lang.Object obj)
           
 void destroyObject(java.lang.Object obj)
           
 java.lang.Object makeObject()
           
 void passivateObject(java.lang.Object obj)
           
 boolean validateObject(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedFTPClientFactory

public WrappedFTPClientFactory(FTPConnectionInfo connectionConfiguration,
                               java.util.logging.Logger logger)
Method Detail

makeObject

public java.lang.Object makeObject()
                            throws java.lang.Exception
Specified by:
makeObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception

destroyObject

public void destroyObject(java.lang.Object obj)
                   throws java.lang.Exception
Specified by:
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception

validateObject

public boolean validateObject(java.lang.Object obj)
Specified by:
validateObject in interface org.apache.commons.pool.PoolableObjectFactory

activateObject

public void activateObject(java.lang.Object obj)
                    throws java.lang.Exception
Specified by:
activateObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception

passivateObject

public void passivateObject(java.lang.Object obj)
                     throws java.lang.Exception
Specified by:
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception


Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.