Package org.objectweb.joram.client.osgi
Class JndiHelper
- java.lang.Object
-
- org.objectweb.joram.client.osgi.JndiHelper
-
public class JndiHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static org.objectweb.util.monolog.api.Loggerlogmon
-
Constructor Summary
Constructors Constructor Description JndiHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ContextgetInitialContext()private booleanisSet(String value)Objectlookup(String jndiName)Lookup the jndi namevoidrebind(String jndiName, Object obj)rebind the object.voidunbind(String jndiName)Unbind the jndi name
-
-
-
Method Detail
-
isSet
private final boolean isSet(String value)
-
getInitialContext
private Context getInitialContext() throws IOException, NamingException
- Throws:
IOExceptionNamingException
-
rebind
public void rebind(String jndiName, Object obj) throws NamingException
rebind the object.- Parameters:
jndiName- the jndi nameobj- object to rebind- Throws:
NamingException
-
unbind
public void unbind(String jndiName)
Unbind the jndi name- Parameters:
jndiName- the jndi name
-
lookup
public Object lookup(String jndiName) throws NamingException
Lookup the jndi name- Parameters:
jndiName- the jndi name- Throws:
NamingException
-
-