Package org.hibernate.engine.jndi.spi
Interface JndiService
-
- All Superinterfaces:
Serializable
,Service
public interface JndiService extends Service
Service providing simplified access to JNDI related features needed by Hibernate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.Object
locate(String jndiName)
Locate an object in JNDI by namevoid
unbind(String jndiName)
Unbind a value from JNDI by name.
-
-
-
Method Detail
-
locate
Object locate(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(String jndiName, 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(String jndiName)
Unbind a value from JNDI by name.- Parameters:
jndiName
- The name under which the object is bound
-
addListener
void addListener(String jndiName, NamespaceChangeListener listener)
Adds the specified listener to the given JNDI namespace.- Parameters:
jndiName
- The JNDI namespacelistener
- The listener
-
-