public interface JNDIContextManager
Modifier and Type | Method and Description |
---|---|
javax.naming.Context |
newInitialContext()
Creates a new JNDI initial context with the default JNDI environment
properties.
|
javax.naming.Context |
newInitialContext(java.util.Map<java.lang.String,?> environment)
Creates a new JNDI initial context with the specified JNDI environment
properties.
|
javax.naming.directory.DirContext |
newInitialDirContext()
Creates a new initial DirContext with the default JNDI environment
properties.
|
javax.naming.directory.DirContext |
newInitialDirContext(java.util.Map<java.lang.String,?> environment)
Creates a new initial DirContext with the specified JNDI environment
properties.
|
javax.naming.Context newInitialContext() throws javax.naming.NamingException
javax.naming.NamingException
- upon any error that occurs during context
creationjavax.naming.Context newInitialContext(java.util.Map<java.lang.String,?> environment) throws javax.naming.NamingException
environment
- JNDI environment properties specified by callerjavax.naming.NamingException
- upon any error that occurs during context
creationjavax.naming.directory.DirContext newInitialDirContext() throws javax.naming.NamingException
javax.naming.NamingException
- upon any error that occurs during context
creationjavax.naming.directory.DirContext newInitialDirContext(java.util.Map<java.lang.String,?> environment) throws javax.naming.NamingException
environment
- JNDI environment properties specified by the callerjavax.naming.NamingException
- upon any error that occurs during context
creationCopyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0