org.jboss.test.jca.fs
Class FSMangedConnectionFactory

java.lang.Object
  extended byorg.jboss.test.jca.fs.FSMangedConnectionFactory
All Implemented Interfaces:
ManagedConnectionFactory (src) , java.io.Serializable

public class FSMangedConnectionFactory
extends java.lang.Object
implements ManagedConnectionFactory (src) , java.io.Serializable

See Also:
Serialized Form

Constructor Summary
FSMangedConnectionFactory()
          Creates new FSMangedConnectionFactory
 
Method Summary
 java.lang.Object createConnectionFactory()
          Creates a connection factory instance.
 java.lang.Object createConnectionFactory(ConnectionManager (src)  cm)
          Creates a connection factory instance.
 ManagedConnection (src) createManagedConnection(javax.security.auth.Subject subject, ConnectionRequestInfo (src)  info)
          Creates a new ManagedConnection
 boolean equals(java.lang.Object other)
          Tests object for equality
 java.io.PrintWriter getLogWriter()
          Gets the logwriter for this instance.
 java.lang.String getPassword()
           
 java.lang.String getRoles()
           
 java.lang.String getUserName()
           
 int hashCode()
          Generates a hashCode for this object
 ManagedConnection (src) matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, ConnectionRequestInfo (src)  info)
          Returns a matching connection from the set.
 void setFileSystemRootDir(java.lang.String rootDirPath)
           
 void setLogWriter(java.io.PrintWriter out)
          Sets the logwriter for this instance.
 void setPassword(java.lang.String password)
           
 void setRoles(java.lang.String roles)
           
 void setUserName(java.lang.String userName)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSMangedConnectionFactory

public FSMangedConnectionFactory()
Creates new FSMangedConnectionFactory

Method Detail

createConnectionFactory

public java.lang.Object createConnectionFactory()
                                         throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Creates a connection factory instance. The connection manager is provided by the resource adapter.

Specified by:
createConnectionFactory in interface ManagedConnectionFactory (src)
Returns:
the connection factory
Throws:
ResourceException (src) - for a generic error

createConnectionFactory

public java.lang.Object createConnectionFactory(ConnectionManager (src)  cm)
                                         throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Creates a connection factory instance. the connection manager is provided by the application server

Specified by:
createConnectionFactory in interface ManagedConnectionFactory (src)
Parameters:
cm - the connection manager
Returns:
the connection factory
Throws:
ResourceException (src) - for a generic error

createManagedConnection

public ManagedConnection (src)  createManagedConnection(javax.security.auth.Subject subject,
                                                 ConnectionRequestInfo (src)  info)
                                          throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Creates a new ManagedConnection

Specified by:
createManagedConnection in interface ManagedConnectionFactory (src)
Parameters:
subject - the subject
info - the connection request info
Returns:
the managed connection
Throws:
ResourceException (src) - for a generic error

matchManagedConnections

public ManagedConnection (src)  matchManagedConnections(java.util.Set connectionSet,
                                                 javax.security.auth.Subject subject,
                                                 ConnectionRequestInfo (src)  info)
                                          throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Returns a matching connection from the set.

Specified by:
matchManagedConnections in interface ManagedConnectionFactory (src)
Parameters:
connectionSet - the connection set
subject - the subject
info - the connection request info
Returns:
the managed connection
Throws:
ResourceException (src) - for a generic error

getLogWriter

public java.io.PrintWriter getLogWriter()
                                 throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Gets the logwriter for this instance.

Specified by:
getLogWriter in interface ManagedConnectionFactory (src)
Returns:
the log writer
Throws:
ResourceException (src) - for a generic error

setLogWriter

public void setLogWriter(java.io.PrintWriter out)
                  throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Sets the logwriter for this instance.

Specified by:
setLogWriter in interface ManagedConnectionFactory (src)
Parameters:
out - the log writer
Throws:
ResourceException (src) - for a generic error

equals

public boolean equals(java.lang.Object other)
Description copied from interface: ManagedConnectionFactory (src)
Tests object for equality

Specified by:
equals in interface ManagedConnectionFactory (src)

hashCode

public int hashCode()
Description copied from interface: ManagedConnectionFactory (src)
Generates a hashCode for this object

Specified by:
hashCode in interface ManagedConnectionFactory (src)

getUserName

public java.lang.String getUserName()

setUserName

public void setUserName(java.lang.String userName)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getRoles

public java.lang.String getRoles()

setRoles

public void setRoles(java.lang.String roles)

setFileSystemRootDir

public void setFileSystemRootDir(java.lang.String rootDirPath)