1 10 11 package org.mule.config.pool; 12 13 import org.mule.impl.MuleDescriptor; 14 import org.mule.umo.UMODescriptor; 15 import org.mule.umo.model.UMOPoolFactory; 16 import org.mule.util.ObjectFactory; 17 import org.mule.util.ObjectPool; 18 19 26 public class CommonsPoolFactory implements UMOPoolFactory 27 { 28 public ObjectPool createPool(UMODescriptor descriptor, ObjectFactory factory) 29 { 30 return new CommonsPoolProxyPool((MuleDescriptor)descriptor, factory); 31 } 32 33 public ObjectPool createPool(UMODescriptor descriptor) 34 { 35 return new CommonsPoolProxyPool((MuleDescriptor)descriptor, new CommonsPoolProxyFactory( 36 (MuleDescriptor)descriptor)); 37 } 38 } 39 | Popular Tags |