| Constructor and Description |
|---|
ServiceLocator() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
lookup(Class<T> classToLookup)
Performs a lookup of the service identified by the name of the supplied classToLookup.
|
static UserTransaction |
lookupUserTransaction(Context context)
Looks up the current user transaction.
|
public <T> T lookup(Class<T> classToLookup)
T - The type of the service to lookup.classToLookup - The class of the service to lookup.ServiceLocatorException - When the service could not be located.public static UserTransaction lookupUserTransaction(Context context) throws NamingException
context - The JNDI Context to use for the lookup.NamingException - When the transaction could not be looked up.NullPointerException - When the supplied context is null.Copyright © 2008–2018. All rights reserved.