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