public class JndiServiceImpl extends java.lang.Object implements JndiService
| Constructor and Description |
|---|
JndiServiceImpl(java.util.Map configurationValues)
Constructs a JndiServiceImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(java.lang.String jndiName,
javax.naming.event.NamespaceChangeListener listener)
Adds the specified listener to the given JNDI namespace.
|
void |
bind(java.lang.String jndiName,
java.lang.Object value)
Binds a value into JNDI by name.
|
static java.util.Properties |
extractJndiProperties(java.util.Map configurationValues)
Given a hodgepodge of properties, extract out the ones relevant for JNDI interaction.
|
java.lang.Object |
locate(java.lang.String jndiName)
Locate an object in JNDI by name
|
void |
unbind(java.lang.String jndiName)
Unbind a value from JNDI by name.
|
public JndiServiceImpl(java.util.Map configurationValues)
configurationValues - Map of configuration settings, some of which apply to JNDI support.public static java.util.Properties extractJndiProperties(java.util.Map configurationValues)
configurationValues - The map of config valuespublic java.lang.Object locate(java.lang.String jndiName)
JndiServicelocate in interface JndiServicejndiName - The JNDI name of the object to locatepublic void bind(java.lang.String jndiName,
java.lang.Object value)
JndiServicebind in interface JndiServicejndiName - The name under which to bind the objectvalue - The value to bindpublic void unbind(java.lang.String jndiName)
JndiServiceunbind in interface JndiServicejndiName - The name under which the object is boundpublic void addListener(java.lang.String jndiName,
javax.naming.event.NamespaceChangeListener listener)
JndiServiceaddListener in interface JndiServicejndiName - The JNDI namespacelistener - The listenerCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.