类 JndiHelper
- java.lang.Object
-
- org.hibernate.internal.util.jndi.JndiHelper
-
@Deprecated public final class JndiHelper extends Object
已过时。As JNDI access should get routed throughJndiServiceHelper for dealing with JNDI.
-
-
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static voidbind(Context ctx, String name, Object val)已过时。Bind val to name in ctx, and make sure that all intermediate contexts exist.static PropertiesextractJndiProperties(Map configurationValues)已过时。Given a hodgepodge of properties, extract out the ones relevant for JNDI interaction.static InitialContextgetInitialContext(Properties props)已过时。
-
-
-
方法详细资料
-
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.
-
getInitialContext
public static InitialContext getInitialContext(Properties props) throws NamingException
已过时。- 抛出:
NamingException
-
bind
public static void bind(Context ctx, String name, Object val) throws NamingException
已过时。Bind val to name in ctx, and make sure that all intermediate contexts exist.- 参数:
ctx- the root contextname- the name as a stringval- the object to be bound- 抛出:
NamingException- Indicates a problem performing the bind.
-
-