org.mule.config.pool
Class AbstractProxyFactory

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

public abstract class AbstractProxyFactory
extends Object
implements ObjectFactory

AbstractProxyFactory provides common behaviour for creating proxy objects.


Field Summary
protected  MuleDescriptor descriptor
          The UMODescriptor used to create new components in the pool
protected  UMOModel model
           
protected  ObjectPool pool
           
 
Constructor Summary
AbstractProxyFactory(MuleDescriptor descriptor, UMOModel model)
          Creates a pool factory using the descriptor as the basis for creating its objects
 
Method Summary
protected  void afterComponentCreate(Object component)
           
 Object create()
           
protected  Object createProxy(Object component)
           
 ObjectPool getPool()
           
 void setPool(ObjectPool pool)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptor

protected MuleDescriptor descriptor
The UMODescriptor used to create new components in the pool


model

protected UMOModel model

pool

protected ObjectPool pool
Constructor Detail

AbstractProxyFactory

public AbstractProxyFactory(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:
UMODescriptor
Method Detail

create

public Object create()
              throws UMOException
Specified by:
create in interface ObjectFactory
Throws:
UMOException

createProxy

protected Object createProxy(Object component)
                      throws UMOException
Throws:
UMOException

afterComponentCreate

protected void afterComponentCreate(Object component)
                             throws InitialisationException
Throws:
InitialisationException

getPool

public ObjectPool getPool()

setPool

public void setPool(ObjectPool pool)


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