类 JndiServiceImpl
- java.lang.Object
-
- org.hibernate.engine.jndi.internal.JndiServiceImpl
-
- 所有已实现的接口:
Serializable,JndiService,Service
public class JndiServiceImpl extends Object implements JndiService
Standard implementation of JNDI services.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 JndiServiceImpl(Map configurationValues)Constructs a JndiServiceImpl
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 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.static PropertiesextractJndiProperties(Map configurationValues)Given a hodgepodge of properties, extract out the ones relevant for JNDI interaction.Objectlocate(String jndiName)Locate an object in JNDI by namevoidunbind(String jndiName)Unbind a value from JNDI by name.
-
-
-
构造器详细资料
-
JndiServiceImpl
public JndiServiceImpl(Map configurationValues)
Constructs a JndiServiceImpl- 参数:
configurationValues- Map of configuration settings, some of which apply to JNDI support.
-
-
方法详细资料
-
extractJndiProperties
public static Properties extractJndiProperties(Map configurationValues)
Given a hodgepodge of properties, extract out the ones relevant for JNDI interaction.- 参数:
configurationValues- The map of config values- 返回:
- The extracted JNDI specific properties.
-
locate
public Object locate(String jndiName)
从接口复制的说明:JndiServiceLocate an object in JNDI by name- 指定者:
locate在接口中JndiService- 参数:
jndiName- The JNDI name of the object to locate- 返回:
- The object found (may be null).
-
bind
public void bind(String jndiName, Object value)
从接口复制的说明:JndiServiceBinds a value into JNDI by name.- 指定者:
bind在接口中JndiService- 参数:
jndiName- The name under which to bind the objectvalue- The value to bind
-
unbind
public void unbind(String jndiName)
从接口复制的说明:JndiServiceUnbind a value from JNDI by name.- 指定者:
unbind在接口中JndiService- 参数:
jndiName- The name under which the object is bound
-
addListener
public void addListener(String jndiName, NamespaceChangeListener listener)
从接口复制的说明:JndiServiceAdds the specified listener to the given JNDI namespace.- 指定者:
addListener在接口中JndiService- 参数:
jndiName- The JNDI namespacelistener- The listener
-
-