JndiLocatorSupport subclass with public lookup methods,
for convenient use as a delegate.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | IGNORE_JNDI_PROPERTY_NAME
System property that instructs Spring to ignore a default JNDI environment, i.e.
to always return |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static JndiLocatorDelegate | createDefaultResourceRefLocator()
Configure a |
| public static boolean | Returns: true if a default InitialContext can be used,
false if notCheck whether a default JNDI environment, as in a Jakarta EE environment, is available on this JVM. |
| public Object | lookup(String
the JNDI name to look up jndiName)Overrides org. |
| public <T> T | lookup(String
the JNDI name to look up jndiName, Class<T> the required type of the object requiredType)Overrides org. |
| IGNORE_JNDI_PROPERTY_NAME | back to summary |
|---|---|
| public static final String IGNORE_JNDI_PROPERTY_NAME System property that instructs Spring to ignore a default JNDI environment, i.e.
to always return The default is "false", allowing for regular default JNDI access e.g. in
Note that this flag just affects JNDI fallback searches, not explicitly configured
JNDI lookups such as for a
| |
| shouldIgnoreDefaultJndiEnvironment | back to summary |
|---|---|
| private static final boolean shouldIgnoreDefaultJndiEnvironment | |
| JndiLocatorDelegate | back to summary |
|---|---|
| public JndiLocatorDelegate() | |
| createDefaultResourceRefLocator | back to summary |
|---|---|
| public static JndiLocatorDelegate createDefaultResourceRefLocator() Configure a
| |
| isDefaultJndiEnvironmentAvailable | back to summary |
|---|---|
| public static boolean isDefaultJndiEnvironmentAvailable() Check whether a default JNDI environment, as in a Jakarta EE environment, is available on this JVM.
| |
| lookup | back to summary |
|---|---|
| public Object lookup(String jndiName) throws NamingException Overrides org. Doc from org. Perform an actual JNDI lookup for the given name via the JndiTemplate. If the name doesn't begin with "java:comp/env/", this prefix is added if "resourceRef" is set to "true".
| |
| lookup | back to summary |
|---|---|
| public <T> T lookup(String jndiName, Class<T> requiredType) throws NamingException Overrides org. Doc from org. Perform an actual JNDI lookup for the given name via the JndiTemplate. If the name doesn't begin with "java:comp/env/", this prefix is added if "resourceRef" is set to "true".
| |