Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) OSGi Alliance (2009, 2010). 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 JNDIProviderAdmin service. This service provides the ability to resolve JNDI References in a dynamic fashion that does not require calls to NamingManager.getObjectInstance(). The methods of this service provide similar reference resolution, but rely on the OSGi Service Registry in order to find ObjectFactory instances that can convert a Reference to an Object. This service will typically be used by OSGi-aware JNDI Service Providers.

Version:
$Id: 54655bb9ec473bf2848e3f16e4bf83db9c8871b0 $
ThreadSafe:
public interface JNDIProviderAdmin {

Resolve the object from the given reference.

Parameters:
refInfo Reference info
name the JNDI name associated with this reference
context the JNDI context associated with this reference
environment the JNDI environment associated with this JNDI context
Returns:
an Object based on the reference passed in, or the original reference object if the reference could not be resolved.
Throws:
java.lang.Exception in the event that an error occurs while attempting to resolve the JNDI reference.
	public Object getObjectInstance(Object refInfoName nameContext context,
			Map environmentthrows Exception;

Resolve the object from the given reference.

Parameters:
refInfo Reference info
name the JNDI name associated with this reference
context the JNDI context associated with this reference
environment the JNDI environment associated with this JNDI context
attributes the naming attributes to use when resolving this object
Returns:
an Object based on the reference passed in, or the original reference object if the reference could not be resolved.
Throws:
java.lang.Exception in the event that an error occurs while attempting to resolve the JNDI reference.
	public Object getObjectInstance(Object refInfoName nameContext context,
			Map environmentAttributes attributesthrows Exception;
New to GrepCode? Check out our FAQ X