You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/11/10 12:41:18 UTC
cvs commit: jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler PoolableComponentHandler.java
donaldp 2002/11/10 03:41:18
Modified: fortress/src/java/org/apache/excalibur/fortress/handler
PoolableComponentHandler.java
Log:
Remove uneeded ctor
Aquire service via ServiceManager
Revision Changes Path
1.42 +9 -18 jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/PoolableComponentHandler.java
Index: PoolableComponentHandler.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/PoolableComponentHandler.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- PoolableComponentHandler.java 9 Nov 2002 08:13:52 -0000 1.41
+++ PoolableComponentHandler.java 10 Nov 2002 11:41:18 -0000 1.42
@@ -52,10 +52,8 @@
import org.apache.avalon.framework.configuration.Configurable;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.apache.avalon.framework.context.Context;
-import org.apache.avalon.framework.context.ContextException;
-import org.apache.excalibur.fortress.ContainerConstants;
-import org.apache.excalibur.mpool.ObjectFactory;
+import org.apache.avalon.framework.service.ServiceException;
+import org.apache.avalon.framework.service.ServiceManager;
import org.apache.excalibur.mpool.Pool;
import org.apache.excalibur.mpool.PoolManager;
@@ -82,21 +80,14 @@
private int m_poolMin;
/**
- * Create a ComponentHandler that takes care of hiding the details of
- * whether a Component is ThreadSafe, Poolable, or SingleThreaded.
- * It falls back to SingleThreaded if not specified.
+ * @avalon.service interface="PoolManager"
*/
- public PoolableComponentHandler( final ObjectFactory factory )
- throws Exception
+ public void service( final ServiceManager serviceManager )
+ throws ServiceException
{
- super( factory );
- }
-
- public void contextualize( Context context )
- throws ContextException
- {
- super.contextualize( context );
- m_poolManager = (PoolManager)context.get( ContainerConstants.POOL_MANAGER );
+ super.service( serviceManager );
+ m_poolManager =
+ (PoolManager)serviceManager.lookup( PoolManager.ROLE );
}
public void configure( final Configuration configuration )
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>