Top Description Methods
org.hibernate.engine.jndi.spi

public Interface JndiService

extends Service
Known Direct Implementers
org.hibernate.engine.jndi.internal.JndiServiceImpl
Imports
javax.naming.event.NamespaceChangeListener, org.hibernate.service.Service

Service providing simplified access to JNDI related features needed by Hibernate.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
addListener(String
The JNDI namespace
jndiName
,
NamespaceChangeListener
The listener
listener
)

Adds the specified listener to the given JNDI namespace.

public void
bind(String
The name under which to bind the object
jndiName
,
Object
The value to bind
value
)

Binds a value into JNDI by name.

public Object

Returns:

The object found (may be null).
locate
(String
The JNDI name of the object to locate
jndiName
)

Locate an object in JNDI by name

public void
unbind(String
The name under which the object is bound
jndiName
)

Unbind a value from JNDI by name.

Method Detail

addListenerback to summary
public void addListener(String jndiName, NamespaceChangeListener listener)

Adds the specified listener to the given JNDI namespace.

Parameters
jndiName:String

The JNDI namespace

listener:NamespaceChangeListener

The listener

bindback to summary
public void bind(String jndiName, Object value)

Binds a value into JNDI by name.

Parameters
jndiName:String

The name under which to bind the object

value:Object

The value to bind

locateback to summary
public Object locate(String jndiName)

Locate an object in JNDI by name

Parameters
jndiName:String

The JNDI name of the object to locate

Returns:Object

The object found (may be null).

unbindback to summary
public void unbind(String jndiName)

Unbind a value from JNDI by name.

Parameters
jndiName:String

The name under which the object is bound