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)
JndiService
locate
in interface JndiService
jndiName
- The JNDI name of the object to locatepublic void bind(String jndiName, Object value)
JndiService
bind
in interface JndiService
jndiName
- The name under which to bind the objectvalue
- The value to bindpublic void unbind(String jndiName)
JndiService
unbind
in interface JndiService
jndiName
- The name under which the object is boundpublic void addListener(String jndiName, NamespaceChangeListener listener)
JndiService
addListener
in interface JndiService
jndiName
- The JNDI namespacelistener
- The listenerCopyright © 2021 JBoss by Red Hat. All rights reserved.