public final class JndiLookupAccessor extends Object
Constructor and Description |
---|
JndiLookupAccessor() |
Modifier and Type | Method and Description |
---|---|
static JndiLookupFacade |
getJndiLookupFacade() |
static Object |
lookup(String name)
Looks up the object for the given name.
|
static void |
setJndiLookupFacade(JndiLookupFacade jndiLookupFacade)
Replaces the default
JndiLookupFacade instance. |
public static JndiLookupFacade getJndiLookupFacade()
JndiLookupFacade
instance. This method is for internal use only.public static void setJndiLookupFacade(JndiLookupFacade jndiLookupFacade)
JndiLookupFacade
instance. This method is for internal use only.public static Object lookup(String name) throws ObjectLookupFailedException
Warning: JNDI lookups may not work in non-container managed threads. If you need to obtain an object within such a thread, consider performing the lookup in a RequestContextListener instead.
ObjectLookupFailedException
- If the lookup failed.Copyright © 2018 SAP SE. All rights reserved.