com.redstarhackers.transaction.services
Class TransactionResourceManager

java.lang.Object
  extended bycom.redstarhackers.transaction.services.TransactionResourceManager

public class TransactionResourceManager
extends java.lang.Object

TODO Class summary sentence. Class documentation.

Version:
$Revision: 1182 $
Author:
$Author: kostya $

Field Summary
static java.lang.String BASE_KEY
           
 
Method Summary
 java.lang.Object getResource(java.lang.String appName, java.lang.String name)
          Get the specified resource instance for this transaction.
static java.lang.Object getTransactionResource(java.lang.String appName, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_KEY

public static final java.lang.String BASE_KEY
See Also:
Constant Field Values
Method Detail

getTransactionResource

public static java.lang.Object getTransactionResource(java.lang.String appName,
                                                      java.lang.String name)

getResource

public java.lang.Object getResource(java.lang.String appName,
                                    java.lang.String name)
Get the specified resource instance for this transaction. If the resource is not loaded, it will be loaded by the resource helper present in the sync. If the sync cannot find a resource helper for the given resource name, it will through a configuration exception.

Parameters:
appName - the application name/id used to look up configuration information
name - the resource name
Returns:
the resource