|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.module.jca.MuleManagedConnectionFactory
public class MuleManagedConnectionFactory
MuleManagedConnectionFactory
TODO
Field Summary | |
---|---|
protected Log |
logger
logger used by this class |
Constructor Summary | |
---|---|
MuleManagedConnectionFactory()
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener lis)
Associate PropertyChangeListener with the ManagedConnectionFactory, in order to notify about properties changes. |
java.lang.Object |
createConnectionFactory()
Creates a Connection Factory instance. |
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
Creates a Connection Factory instance. |
javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
ManagedConnectionFactory uses the security information (passed as Subject) and additional ConnectionRequestInfo (which is specific to ResourceAdapter and opaque to application server) to create this new connection. |
boolean |
equals(java.lang.Object obj)
|
java.io.PrintWriter |
getLogWriter()
Gets the log writer for this ManagedConnectionFactory instance. |
java.lang.String |
getPassword()
Returns the value of the password property. |
java.lang.String |
getUsername()
Returns the value of the userName property. |
int |
hashCode()
|
javax.resource.spi.ManagedConnection |
matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
Returns a matched managed connection from the candidate set of connections. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener lis)
Delete association of PropertyChangeListener with the ManagedConnectionFactory. |
void |
setLogWriter(java.io.PrintWriter out)
Sets the log writer for this ManagedConnectionFactory instance. |
void |
setPassword(java.lang.String password)
Sets the value of the password property. |
void |
setUsername(java.lang.String username)
Sets the value of the userName property. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient Log logger
Constructor Detail |
---|
public MuleManagedConnectionFactory()
Method Detail |
---|
public int hashCode()
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface javax.resource.spi.ManagedConnectionFactory
equals
in class java.lang.Object
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
cxManager
- ConnectionManager to be associated with created EIS
connection factory instance
javax.resource.ResourceException
- if the attempt to create a connection
factory failspublic java.lang.Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
- if the attempt to create a connection factory failspublic javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
subject
- caller's security informationcxRequestInfo
- additional resource adapter specific connection request
information
javax.resource.ResourceException
- if the attempt to create a connection failspublic javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
connectionSet
- candidate connection setsubject
- caller's security informationcxRequestInfo
- additional resource adapter specific connection request
information
javax.resource.ResourceException
- if the match failspublic void setLogWriter(java.io.PrintWriter out) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
out
- an output stream for error logging and tracing
javax.resource.ResourceException
- if the method failspublic java.io.PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
- if the method failspublic void addPropertyChangeListener(java.beans.PropertyChangeListener lis)
lis
- the PropertyChangeListener to be associated with the
ManagedConnectionFactorypublic void removePropertyChangeListener(java.beans.PropertyChangeListener lis)
lis
- the PropertyChangeListener to be removedpublic java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- String containing the value to be assigned to userNamepublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- String containing the value to be assigned to password
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |