01: /*
02: * $Id: MuleConnectionFactory.java 10789 2008-02-12 20:04:43Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.module.jca;
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 that
21: * the RA clients will obtain a reference to.
22: */
23: public interface MuleConnectionFactory extends Serializable,
24: Referenceable {
25: MuleConnection createConnection() throws ResourceException;
26:
27: MuleConnection createConnection(MuleConnectionRequestInfo info)
28: throws ResourceException;
29:
30: ConnectionManager getManager();
31:
32: void setManager(ConnectionManager manager);
33:
34: MuleManagedConnectionFactory getFactory();
35:
36: void setFactory(MuleManagedConnectionFactory factory);
37:
38: MuleConnectionRequestInfo getInfo();
39:
40: void setInfo(MuleConnectionRequestInfo info);
41: }
|