org.jboss.resource.connectionmanager
Interface ConnectionListenerFactory

All Known Implementing Classes:
BaseConnectionManager2, NoTxConnectionManager, TxConnectionManager

public interface ConnectionListenerFactory

A factory for connection event listeners

Version:
$Revision: 1.3.6.2 $
Author:
Adrian Brock

Method Summary
 ConnectionListener createConnectionListener(javax.resource.spi.ManagedConnection mc, Object context)
          Create a managed connection listener for the managed connection
 TransactionManager getTransactionManagerInstance()
          Get the transaction manager
 boolean isTransactional()
          Determine whether is a transaction
 

Method Detail

createConnectionListener

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

Parameters:
mc - 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 is a transaction

Returns:
whether there is a transaction

getTransactionManagerInstance

TransactionManager getTransactionManagerInstance()
Get the transaction manager

Returns:
the transaction manager


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.