de.bea.domingo.connector.impl
Class DomingoManagedConnectionFactory

java.lang.Object
  extended by de.bea.domingo.connector.impl.DomingoManagedConnectionFactory
All Implemented Interfaces:
java.io.Serializable, javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation

public final class DomingoManagedConnectionFactory
extends java.lang.Object
implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation

Author:
Kurt Riede
See Also:
Serialized Form

Constructor Summary
DomingoManagedConnectionFactory()
          Constructor.
 
Method Summary
 java.lang.Object createConnectionFactory()
          
 java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager)
          
 javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
          
 java.lang.String getHost()
          Returns the host of a connection to Lotus Domino.
 java.io.PrintWriter getLogWriter()
          
 java.lang.String getPort()
          Returns the host of a connection to Lotus Domino.
 javax.resource.spi.ResourceAdapter getResourceAdapter()
           
protected  boolean matchConnection(DomingoManagedConnection mc, javax.security.auth.Subject sub, DomingoConnectionSpec cri)
          checks whether the connection is valid.
 javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo info)
          
 void setHost(java.lang.String h)
          Sets the host name of the server for a connection.
 void setLogWriter(java.io.PrintWriter writer)
          
 void setPort(java.lang.String p)
          Sets the port of the server for a connection.
 void setResourceAdapter(javax.resource.spi.ResourceAdapter adapter)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory
equals, hashCode
 

Constructor Detail

DomingoManagedConnectionFactory

public DomingoManagedConnectionFactory()
Constructor.

Method Detail

createConnectionFactory

public java.lang.Object createConnectionFactory()
                                         throws javax.resource.ResourceException

Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException
See Also:
ManagedConnectionFactory.createConnectionFactory()

createConnectionFactory

public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager)
                                         throws javax.resource.ResourceException

Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException
See Also:
ManagedConnectionFactory.createConnectionFactory(javax.resource.spi.ConnectionManager)

createManagedConnection

public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
                                                             throws javax.resource.ResourceException

Specified by:
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException
See Also:
ManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject, javax.resource.spi.ConnectionRequestInfo)

getLogWriter

public java.io.PrintWriter getLogWriter()
                                 throws javax.resource.ResourceException

Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException
See Also:
ManagedConnectionFactory.getLogWriter()

matchManagedConnections

public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet,
                                                                    javax.security.auth.Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo info)
                                                             throws javax.resource.ResourceException

Specified by:
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException
See Also:
ManagedConnectionFactory.matchManagedConnections(java.util.Set, javax.security.auth.Subject, javax.resource.spi.ConnectionRequestInfo)

matchConnection

protected boolean matchConnection(DomingoManagedConnection mc,
                                  javax.security.auth.Subject sub,
                                  DomingoConnectionSpec cri)
                           throws javax.resource.ResourceException
checks whether the connection is valid.

Parameters:
mc - the ICONManagedConnection to check
sub - the Subject to use in checking the connection
cri - the ConnectionRequestInfo to use in checking the connection
Returns:
whether the connection is valid
Throws:
javax.resource.ResourceException - if hte connection cannot be matched

setLogWriter

public void setLogWriter(java.io.PrintWriter writer)
                  throws javax.resource.ResourceException

Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException
See Also:
ManagedConnectionFactory.setLogWriter(java.io.PrintWriter)

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()
Specified by:
getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
See Also:
{@inheritDoc}

setResourceAdapter

public void setResourceAdapter(javax.resource.spi.ResourceAdapter adapter)
                        throws javax.resource.ResourceException

Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
Throws:
javax.resource.ResourceException
See Also:
ResourceAdapterAssociation.setResourceAdapter(javax.resource.spi.ResourceAdapter)

getHost

public java.lang.String getHost()
Returns the host of a connection to Lotus Domino.

Returns:
host name

getPort

public java.lang.String getPort()
Returns the host of a connection to Lotus Domino.

Returns:
host name

setHost

public void setHost(java.lang.String h)
Sets the host name of the server for a connection.

Parameters:
h - name or IP-address of Lotus Domino server

setPort

public void setPort(java.lang.String p)
Sets the port of the server for a connection.

Parameters:
p - port of Lotus Domino server


Domingo 1.0 Java-API