org.mule.config.pool
Class CommonsPoolProxyFactory

java.lang.Object
  extended by org.mule.config.pool.AbstractProxyFactory
      extended by org.mule.config.pool.CommonsPoolProxyFactory
All Implemented Interfaces:
PoolableObjectFactory, ObjectFactory
Direct Known Subclasses:
OptimisedProxyFactory

public class CommonsPoolProxyFactory
extends AbstractProxyFactory
implements PoolableObjectFactory

CommonsPoolProxyFactory is used to create MuleProxies for use in a proxy pool. This is a Jakarta commons-pool implementation.


Field Summary
 
Fields inherited from class org.mule.config.pool.AbstractProxyFactory
descriptor, model, pool
 
Constructor Summary
CommonsPoolProxyFactory(MuleDescriptor descriptor, UMOModel model)
          Creates a pool factory using the descriptor as the basis for creating its objects
 
Method Summary
 void activateObject(Object arg0)
           
protected  void afterComponentCreate(Object component)
           
 void destroyObject(Object object)
           
 Object makeObject()
           
 void passivateObject(Object arg0)
           
 boolean validateObject(Object arg0)
           
 
Methods inherited from class org.mule.config.pool.AbstractProxyFactory
create, createProxy, getPool, setPool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsPoolProxyFactory

public CommonsPoolProxyFactory(MuleDescriptor descriptor,
                               UMOModel model)
Creates a pool factory using the descriptor as the basis for creating its objects

Parameters:
descriptor - the descriptor to use to construct a MuleProxy
See Also:
MuleDescriptor
Method Detail

activateObject

public void activateObject(Object arg0)
                    throws Exception
Specified by:
activateObject in interface PoolableObjectFactory
Throws:
Exception

destroyObject

public void destroyObject(Object object)
                   throws Exception
Specified by:
destroyObject in interface PoolableObjectFactory
Throws:
Exception

makeObject

public Object makeObject()
                  throws Exception
Specified by:
makeObject in interface PoolableObjectFactory
Throws:
Exception

passivateObject

public void passivateObject(Object arg0)
                     throws Exception
Specified by:
passivateObject in interface PoolableObjectFactory
Throws:
Exception

validateObject

public boolean validateObject(Object arg0)
Specified by:
validateObject in interface PoolableObjectFactory

afterComponentCreate

protected void afterComponentCreate(Object component)
                             throws InitialisationException
Overrides:
afterComponentCreate in class AbstractProxyFactory
Throws:
InitialisationException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.