|
||||||||||
| 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(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 ManagedConnectionFactoryhashCode in class Objectpublic boolean equals(Object obj)
equals in interface ManagedConnectionFactoryequals in class Object
public Object createConnectionFactory(ConnectionManager cxManager)
throws ResourceException
createConnectionFactory in interface ManagedConnectionFactorycxManager - ConnectionManager to be associated with created EIS
connection factory instance
ResourceException - if the attempt to create a connection
factory fails
public Object createConnectionFactory()
throws ResourceException
createConnectionFactory in interface ManagedConnectionFactoryResourceException - if the attempt to create a connection factory fails
public ManagedConnection createManagedConnection(Subject subject,
ConnectionRequestInfo cxRequestInfo)
throws ResourceException
createManagedConnection in interface ManagedConnectionFactorysubject - caller's security informationcxRequestInfo - additional resource adapter specific connection request
information
ResourceException - if the attempt to create a connection fails
public ManagedConnection matchManagedConnections(Set connectionSet,
Subject subject,
ConnectionRequestInfo cxRequestInfo)
throws ResourceException
matchManagedConnections in interface ManagedConnectionFactoryconnectionSet - candidate connection setsubject - caller's security informationcxRequestInfo - additional resource adapter specific connection request
information
ResourceException - if the match fails
public void setLogWriter(PrintWriter out)
throws ResourceException
setLogWriter in interface ManagedConnectionFactoryout - an output stream for error logging and tracing
ResourceException - if the method fails
public PrintWriter getLogWriter()
throws ResourceException
getLogWriter in interface ManagedConnectionFactoryResourceException - 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 | |||||||||