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