Package org.hibernate.engine.jndi.spi
Interface JndiService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(java.lang.String jndiName, javax.naming.event.NamespaceChangeListener listener)Adds the specified listener to the given JNDI namespace.voidbind(java.lang.String jndiName, java.lang.Object value)Binds a value into JNDI by name.java.lang.Objectlocate(java.lang.String jndiName)Locate an object in JNDI by namevoidunbind(java.lang.String jndiName)Unbind a value from JNDI by name.
-
-
-
Method Detail
-
locate
java.lang.Object locate(java.lang.String jndiName)
Locate an object in JNDI by name- Parameters:
jndiName- The JNDI name of the object to locate- Returns:
- The object found (may be null).
-
bind
void bind(java.lang.String jndiName, java.lang.Object value)Binds a value into JNDI by name.- Parameters:
jndiName- The name under which to bind the objectvalue- The value to bind
-
unbind
void unbind(java.lang.String jndiName)
Unbind a value from JNDI by name.- Parameters:
jndiName- The name under which the object is bound
-
addListener
void addListener(java.lang.String jndiName, javax.naming.event.NamespaceChangeListener listener)Adds the specified listener to the given JNDI namespace.- Parameters:
jndiName- The JNDI namespacelistener- The listener
-
-