Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) OSGi Alliance (2009, 2013). All Rights Reserved.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.osgi.service.jndi;
This interface defines the OSGi service interface for the JNDIContextManager. This service provides the ability to create new JNDI Context instances without relying on the InitialContext constructor.

Author(s):
$Id: 673da73d8a10020e79c2e21a53e7689b6cdb4348 $
ThreadSafe:
public interface JNDIContextManager {

Creates a new JNDI initial context with the default JNDI environment properties.

Returns:
an instance of javax.naming.Context
Throws:
javax.naming.NamingException upon any error that occurs during context creation
Creates a new JNDI initial context with the specified JNDI environment properties.

Parameters:
environment JNDI environment properties specified by caller
Returns:
an instance of javax.naming.Context
Throws:
javax.naming.NamingException upon any error that occurs during context creation
	public Context newInitialContext(Map environmentthrows NamingException;

Creates a new initial DirContext with the default JNDI environment properties.

Returns:
an instance of javax.naming.directory.DirContext
Throws:
javax.naming.NamingException upon any error that occurs during context creation
Creates a new initial DirContext with the specified JNDI environment properties.

Parameters:
environment JNDI environment properties specified by the caller
Returns:
an instance of javax.naming.directory.DirContext
Throws:
javax.naming.NamingException upon any error that occurs during context creation
	public DirContext newInitialDirContext(Map environmentthrows NamingException;
New to GrepCode? Check out our FAQ X