|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.module.jca.MuleManagedConnection
public class MuleManagedConnection
MuleManagedConnection
TODO
Method Summary | |
---|---|
void |
addConnection(MuleConnection connection)
Associate connection handle with the physical connection. |
void |
addConnectionEventListener(ConnectionEventListener listener)
Adds a connection event listener to the ManagedConnection instance. |
void |
associateConnection(Object connection)
Used by the container to change the association of an application-level connection handle with a ManagedConnection instance. |
void |
cleanup()
Initiates a cleanup of the client-specific state maintained by a ManagedConnection instance. |
void |
destroy()
Destroys the physical connection. |
Object |
getConnection(Subject subject,
ConnectionRequestInfo connectionRequestInfo)
Creates a new connection handle to the Mail Server represented by the ManagedConnection instance. |
LocalTransaction |
getLocalTransaction()
Returns a javax.resource.spi.LocalTransaction instance. |
PrintWriter |
getLogWriter()
Gets the log writer for this ManagedConnection instance. |
MuleManagedConnectionFactory |
getManagedConnectionFactory()
Returns the ManagedConnectionFactory that created this instance of ManagedConnection. |
ManagedConnectionMetaData |
getMetaData()
Gets the metadata information for this connection's underlying EIS resource manager instance. |
PasswordCredential |
getPasswordCredential()
Gets the password for the user associated with the ManagedConnection instance. |
String |
getUsername()
Gets the user name of the user associated with the ManagedConnection instance. |
XAResource |
getXAResource()
Returns a javax.transaction.xa.XAresource instance. |
void |
removeConnection(MuleConnection connection)
Removes the associated connection handle from the connections set to the physical connection. |
void |
removeConnectionEventListener(ConnectionEventListener listener)
Removes an already registered connection event listener from the ManagedConnection instance. |
void |
setLogWriter(PrintWriter out)
Sets the log writer for this ManagedConnection instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Object getConnection(Subject subject, ConnectionRequestInfo connectionRequestInfo) throws ResourceException
getConnection
in interface ManagedConnection
subject
- security context as JAAS subjectconnectionRequestInfo
- ConnectionRequestInfo instance
ResourceException
- if the method fails to get a connectionpublic void destroy() throws ResourceException
destroy
in interface ManagedConnection
ResourceException
- if the method fails to destroy the connectionpublic void cleanup() throws ResourceException
cleanup
in interface ManagedConnection
ResourceException
- if the cleanup failspublic void associateConnection(Object connection) throws ResourceException
associateConnection
in interface ManagedConnection
connection
- application-level connection handle
ResourceException
- if the attempt to change the association failspublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener
in interface ManagedConnection
listener
- a new ConnectionEventListener to be registeredpublic void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener
in interface ManagedConnection
listener
- already registered connection event listener to be removedpublic XAResource getXAResource() throws ResourceException
getXAResource
in interface ManagedConnection
ResourceException
- if transactions are not supportedpublic LocalTransaction getLocalTransaction() throws ResourceException
getLocalTransaction
in interface ManagedConnection
ResourceException
- if transactions are not supportedpublic ManagedConnectionMetaData getMetaData() throws ResourceException
getMetaData
in interface ManagedConnection
ResourceException
- if the metadata cannot be retrievedpublic void setLogWriter(PrintWriter out) throws ResourceException
setLogWriter
in interface ManagedConnection
out
- character output stream to be associated
ResourceException
- if the method failspublic PrintWriter getLogWriter() throws ResourceException
getLogWriter
in interface ManagedConnection
ResourceException
- if the method failspublic String getUsername()
public PasswordCredential getPasswordCredential()
public void addConnection(MuleConnection connection)
connection
- connection handlepublic void removeConnection(MuleConnection connection)
connection
- the connection handlepublic MuleManagedConnectionFactory getManagedConnectionFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |