接口 JndiService
-
- 所有超级接口:
Serializable,Service
- 所有已知实现类:
JndiServiceImpl
public interface JndiService extends Service
Service providing simplified access to JNDI related features needed by Hibernate.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidaddListener(String jndiName, NamespaceChangeListener listener)Adds the specified listener to the given JNDI namespace.voidbind(String jndiName, Object value)Binds a value into JNDI by name.Objectlocate(String jndiName)Locate an object in JNDI by namevoidunbind(String jndiName)Unbind a value from JNDI by name.
-
-
-
方法详细资料
-
locate
Object locate(String jndiName)
Locate an object in JNDI by name- 参数:
jndiName- The JNDI name of the object to locate- 返回:
- The object found (may be null).
-
bind
void bind(String jndiName, Object value)
Binds a value into JNDI by name.- 参数:
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.- 参数:
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.- 参数:
jndiName- The JNDI namespacelistener- The listener
-
-