/*
 * JBoss, the OpenSource J2EE webOS
 * 
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package org.jboss.test.jcaprops.support;

import javax.resource.spi.ConnectionManager;

/**
 * A PropertyTestConnectionFactoryImpl.
 * 
 * @author <a href="adrian@jboss.com">Adrian Brock</a>
 * @version $Revision: 1.1.2.2 $
 */
public class PropertyTestConnectionFactoryImpl
{
   private ConnectionManager cm;
   
   public PropertyTestConnectionFactoryImpl(ConnectionManager cm)
   {
      this.cm = cm;
   }
   
   public PropertyTestConnection createConnection() throws Exception
   {
      return (PropertyTestConnection) cm.allocateConnection(null, new PropertyTestConnectionRequestInfo());
   }

}
