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. |
@Nonnull public static JndiLookupFacade getJndiLookupFacade()
JndiLookupFacade
instance. This method is for internal use only.public static void setJndiLookupFacade(@Nonnull JndiLookupFacade jndiLookupFacade)
JndiLookupFacade
instance. This method is for internal use only.@Nonnull public static Object lookup(String name) throws ObjectLookupFailedException
Caution: 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 there was an issue looking up the object.Copyright © 2018 SAP SE. All rights reserved.