org.codehaus.plexus.component.manager
Class PoolableComponentManager

java.lang.Object
  extended byorg.codehaus.plexus.component.manager.AbstractComponentManager
      extended byorg.codehaus.plexus.component.manager.PoolableComponentManager
All Implemented Interfaces:
java.lang.Cloneable, ComponentManager

public class PoolableComponentManager
extends AbstractComponentManager

Pools comnponents

Version:
$Id: PoolableComponentManager.java,v 1.6 2003/11/12 05:26:50 jvanzyl Exp $
Author:
Jason van Zyl

Field Summary
private  int initialCapacity
           
private  int maxCapacity
           
private  int minCapacity
           
private  SweeperPool pool
           
private  int sweepInterval
           
private  int triggerSize
           
 
Fields inherited from class org.codehaus.plexus.component.manager.AbstractComponentManager
 
Constructor Summary
PoolableComponentManager()
           
 
Method Summary
 void dispose()
           
 java.lang.Object getComponent()
           
 void initialize()
           
 void release(java.lang.Object component)
           
 
Methods inherited from class org.codehaus.plexus.component.manager.AbstractComponentManager
connected, copy, createComponentInstance, decrementConnectionCount, endComponentLifecycle, getClassLoader, getComponentDescriptor, getConnections, getId, getLifecycleHandler, getLogger, incrementConnectionCount, resume, setup, startComponentLifecycle, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pool

private SweeperPool pool

maxCapacity

private int maxCapacity

minCapacity

private int minCapacity

initialCapacity

private int initialCapacity

sweepInterval

private int sweepInterval

triggerSize

private int triggerSize
Constructor Detail

PoolableComponentManager

public PoolableComponentManager()
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface ComponentManager
Overrides:
initialize in class AbstractComponentManager
Throws:
java.lang.Exception

release

public void release(java.lang.Object component)
See Also:
ComponentManager.release(Object)

dispose

public void dispose()
See Also:
ComponentManager.dispose()

getComponent

public java.lang.Object getComponent()
                              throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
ComponentManager.getComponent()