com.caucho.jca.ra
Class ResourceManagerImpl

java.lang.Object
  extended by com.caucho.jca.ra.ResourceManagerImpl
All Implemented Interfaces:
BootstrapContext

public class ResourceManagerImpl
extends java.lang.Object
implements BootstrapContext

Implementation of the resource manager.


Nested Class Summary
 class ResourceManagerImpl.TimerImpl
           
 
Method Summary
static void addResource(ResourceAdapter resource)
          Adds a resource to the manager.
 void classLoaderDestroy(DynamicClassLoader loader)
          Handles the case where a class loader is dropped.
 void classLoaderInit(DynamicClassLoader loader)
          Handles the case where a class loader is activated.
static ResourceManagerImpl create()
          Returns the impl.
 ConnectionPool createConnectionPool()
          Returns a connection manager
static ResourceManagerImpl createLocalManager()
          Returns the impl.
 java.util.Timer createTimer()
          Creates a new Timer instance.
 void destroy()
          Closes the resource manager.
static ResourceManagerImpl getLocalManager()
          Returns the impl.
 WorkManager getWorkManager()
          Returns a WorkManager instance.
 XATerminator getXATerminator()
          Returns an XATerminator.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createLocalManager

public static ResourceManagerImpl createLocalManager()
Returns the impl.


create

public static ResourceManagerImpl create()
Returns the impl.


getLocalManager

public static ResourceManagerImpl getLocalManager()
Returns the impl.


addResource

public static void addResource(ResourceAdapter resource)
                        throws ConfigException
Adds a resource to the manager.

Throws:
ConfigException

createConnectionPool

public ConnectionPool createConnectionPool()
Returns a connection manager


getWorkManager

public WorkManager getWorkManager()
Returns a WorkManager instance.

Specified by:
getWorkManager in interface BootstrapContext

getXATerminator

public XATerminator getXATerminator()
Returns an XATerminator. The XATerminator could be used for transaction completion and crash recovery.

Specified by:
getXATerminator in interface BootstrapContext

createTimer

public java.util.Timer createTimer()
                            throws UnavailableException
Creates a new Timer instance.

Specified by:
createTimer in interface BootstrapContext
Throws:
UnavailableException

classLoaderInit

public void classLoaderInit(DynamicClassLoader loader)
Handles the case where a class loader is activated.


classLoaderDestroy

public void classLoaderDestroy(DynamicClassLoader loader)
Handles the case where a class loader is dropped.


destroy

public void destroy()
Closes the resource manager.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object