1 /*2 * $Id: MuleConnectionFactory.java 3798 2006-11-04 04:07:14Z aperepel $3 * --------------------------------------------------------------------------------------4 * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com5 *6 * The software in this package is published under the terms of the MuleSource MPL7 * license, a copy of which has been included with this distribution in the8 * LICENSE.txt file.9 */10 11 package org.mule.ra;12 13 import java.io.Serializable ;14 15 import javax.resource.Referenceable ;16 import javax.resource.ResourceException ;17 import javax.resource.spi.ConnectionManager ;18 19 /**20 * <code>MuleConnectionFactory</code> defines the connection factory interface that21 * the RA clients will obtain a reference to.22 */23 public interface MuleConnectionFactory extends Serializable , Referenceable 24 {25 MuleConnection createConnection() throws ResourceException ;26 27 MuleConnection createConnection(MuleConnectionRequestInfo info) throws ResourceException ;28 29 ConnectionManager getManager();30 31 void setManager(ConnectionManager manager);32 33 MuleManagedConnectionFactory getFactory();34 35 void setFactory(MuleManagedConnectionFactory factory);36 37 MuleConnectionRequestInfo getInfo();38 39 void setInfo(MuleConnectionRequestInfo info);40 }41