Package org.hibernate.engine.jndi.spi
Interface JndiService
- All Superinterfaces:
Serializable,Service
Service providing simplified access to JNDI related features needed by Hibernate.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(String jndiName, NamespaceChangeListener listener) Adds the specified listener to the given JNDI namespace.voidBinds a value into JNDI by name.Locate an object in JNDI by namevoidUnbind a value from JNDI by name.
-
Method Details
-
locate
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
Binds a value into JNDI by name.- Parameters:
jndiName- The name under which to bind the objectvalue- The value to bind
-
unbind
Unbind a value from JNDI by name.- Parameters:
jndiName- The name under which the object is bound
-
addListener
Adds the specified listener to the given JNDI namespace.- Parameters:
jndiName- The JNDI namespacelistener- The listener
-