Top Fields Constructors Methods
org.hibernate.util

public final Class NamingHelper

extends Object
Class Inheritance
Imports
java.util.HashSet, .Hashtable, .Iterator, .Properties, javax.naming.Context, .InitialContext, .Name, .NameNotFoundException, .NamingException, org.slf4j.Logger, .LoggerFactory, org.hibernate.cfg.Environment

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
bind(Context
the root context
ctx
,
String
the name as a string
name
,
Object
the object to be bound
val
)

Bind val to name in ctx, and make sure that all intermediate contexts exist.

public static InitialContext
public static Properties
getJndiProperties(Properties properties)

Transform JNDI properties passed in the form hibernate.jndi.* to the format accepted by InitialContext by triming the leading "hibernate.jndi".

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log

Constructor Detail

NamingHelperback to summary
private NamingHelper()

Method Detail

bindback to summary
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.

Parameters
ctx:Context

the root context

name:String

the name as a string

val:Object

the object to be bound

getInitialContextback to summary
public static InitialContext getInitialContext(Properties props) throws NamingException
getJndiPropertiesback to summary
public static Properties getJndiProperties(Properties properties)

Transform JNDI properties passed in the form hibernate.jndi.* to the format accepted by InitialContext by triming the leading "hibernate.jndi".