1 22 package org.jboss.test.deployers.rar.mcf1; 23 24 import java.io.PrintWriter ; 25 import java.util.Set ; 26 27 import javax.resource.ResourceException ; 28 import javax.resource.spi.ConnectionManager ; 29 import javax.resource.spi.ConnectionRequestInfo ; 30 import javax.resource.spi.ManagedConnection ; 31 import javax.resource.spi.ManagedConnectionFactory ; 32 import javax.security.auth.Subject ; 33 34 public class MCF1ManagedConnectionFactory implements ManagedConnectionFactory 35 { 36 37 private static final long serialVersionUID = 1L; 38 39 public Object createConnectionFactory() throws ResourceException 40 { 41 return null; 42 } 43 44 public Object createConnectionFactory(ConnectionManager cxManager) throws ResourceException 45 { 46 return new MCF1ConnectionFactoryImpl(cxManager); 47 } 48 49 public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException 50 { 51 return new MCF1ManagedConnection(this); 52 } 53 54 public PrintWriter getLogWriter() throws ResourceException 55 { 56 return null; 57 } 58 59 public ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException 60 { 61 return (ManagedConnection ) connectionSet.iterator().next(); 62 } 63 64 public void setLogWriter(PrintWriter out) throws ResourceException 65 { 66 } 67 68 } 69 | Popular Tags |