Top Description Methods
org.osgi.service.jndi

public Interface JNDIProviderAdmin

Imports
java.util.Map, javax.naming.Context, .Name, javax.naming.directory.Attributes

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.
Author
$Id: 27e89799c2ea6cced5c1e59ad8ab3a51fdb28cc7 $

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

an Object based on the reference passed in, or the original reference object if the reference could not be resolved.
getObjectInstance
(Object
Reference info
refInfo
,
Name
the JNDI name associated with this reference
name
,
Context
the JNDI context associated with this reference
context
,
Map<String, ?>
the JNDI environment associated with this JNDI context
environment
)

Resolve the object from the given reference.

public Object

Returns:

an Object based on the reference passed in, or the original reference object if the reference could not be resolved.
getObjectInstance
(Object
Reference info
refInfo
,
Name
the JNDI name associated with this reference
name
,
Context
the JNDI context associated with this reference
context
,
Map<String, ?>
the JNDI environment associated with this JNDI context
environment
,
Attributes
the naming attributes to use when resolving this object
attributes
)

Resolve the object from the given reference.

Method Detail

getObjectInstanceback to summary
public Object getObjectInstance(Object refInfo, Name name, Context context, Map<String, ?> environment) throws Exception

Resolve the object from the given reference.

Parameters
refInfo:Object

Reference info

name:Name

the JNDI name associated with this reference

context:Context

the JNDI context associated with this reference

environment:Map<String, ?>

the JNDI environment associated with this JNDI context

Returns:Object

an Object based on the reference passed in, or the original reference object if the reference could not be resolved.

Exceptions
Exception:
in the event that an error occurs while attempting to resolve the JNDI reference.
getObjectInstanceback to summary
public Object getObjectInstance(Object refInfo, Name name, Context context, Map<String, ?> environment, Attributes attributes) throws Exception

Resolve the object from the given reference.

Parameters
refInfo:Object

Reference info

name:Name

the JNDI name associated with this reference

context:Context

the JNDI context associated with this reference

environment:Map<String, ?>

the JNDI environment associated with this JNDI context

attributes:Attributes

the naming attributes to use when resolving this object

Returns:Object

an Object based on the reference passed in, or the original reference object if the reference could not be resolved.

Exceptions
Exception:
in the event that an error occurs while attempting to resolve the JNDI reference.