public interface JndiLookupFacade
Modifier and Type | Method and Description |
---|---|
io.vavr.control.Try<Object> |
tryLookup(String name)
Looks up the object for the given name.
|
@Nonnull io.vavr.control.Try<Object> tryLookup(@Nonnull String name)
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 ThreadContextListener instead.
name
- The name to lookup a JNDI object.Try
of the object returned by the lookup.Copyright © 2020 SAP SE. All rights reserved.