org.jboss.jca.core.connectionmanager.listener
Interface ConnectionListenerFactory

All Known Subinterfaces:
ConnectionManager, NoTxConnectionManager, TxConnectionManager
All Known Implementing Classes:
AbstractConnectionManager, NoTxConnectionManagerImpl, TxConnectionManagerImpl

public interface ConnectionListenerFactory

A factory for connection event listeners.

Version:
$Revision$
Author:
Gurkan Erdogdu, Adrian Brock

Method Summary
 ConnectionListener createConnectionListener(javax.resource.spi.ManagedConnection managedConnection, Object context)
          Create a managed connection listener for the managed connection.
 org.jboss.jca.core.spi.transaction.TransactionIntegration getTransactionIntegration()
          Get the transaction integration.
 boolean isTransactional()
          Determine whether there connection is a transactional.
 

Method Detail

createConnectionListener

ConnectionListener createConnectionListener(javax.resource.spi.ManagedConnection managedConnection,
                                            Object context)
                                            throws javax.resource.ResourceException
Create a managed connection listener for the managed connection.

Parameters:
managedConnection - the managed connection
context - a context object used by the pool
Returns:
a new connection event listener
Throws:
javax.resource.ResourceException - for any error

isTransactional

boolean isTransactional()
Determine whether there connection is a transactional.

Returns:
whether it is a transactional or not

getTransactionIntegration

org.jboss.jca.core.spi.transaction.TransactionIntegration getTransactionIntegration()
Get the transaction integration.

Returns:
the transaction integration


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)