public class NamingLocator
extends java.lang.Object
Constructor and Description |
---|
NamingLocator() |
Modifier and Type | Method and Description |
---|---|
static javax.naming.Context |
getContext()
Returns the naming context.
|
static java.lang.Object |
lookup(java.lang.String jndiName)
Lookup an object instance from JNDI context.
|
static void |
refresh()
Refresh the used
InitialContext instance. |
static void |
setContext(java.util.Properties properties)
Set the used
InitialContext . |
public static javax.naming.Context getContext()
public static java.lang.Object lookup(java.lang.String jndiName)
jndiName
- JNDI lookup namepublic static void refresh()
InitialContext
instance.public static void setContext(java.util.Properties properties) throws javax.naming.NamingException
InitialContext
. If properties argument is null, the default
initial context was used.properties
- The properties used for context instantiation - the properties are:
Context.INITIAL_CONTEXT_FACTORY
, Context.PROVIDER_URL
, Context.URL_PKG_PREFIXES
javax.naming.NamingException
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30