View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.module.jca;
8   
9   import java.io.Serializable;
10  
11  import javax.resource.Referenceable;
12  import javax.resource.ResourceException;
13  import javax.resource.spi.ConnectionManager;
14  
15  /**
16   * <code>MuleConnectionFactory</code> defines the connection factory interface that
17   * the RA clients will obtain a reference to.
18   */
19  public interface MuleConnectionFactory extends Serializable, Referenceable
20  {
21      MuleConnection createConnection() throws ResourceException;
22  
23      MuleConnection createConnection(MuleConnectionRequestInfo info) throws ResourceException;
24  
25      ConnectionManager getManager();
26  
27      void setManager(ConnectionManager manager);
28  
29      MuleManagedConnectionFactory getFactory();
30  
31      void setFactory(MuleManagedConnectionFactory factory);
32  
33      MuleConnectionRequestInfo getInfo();
34  
35      void setInfo(MuleConnectionRequestInfo info);
36  }