public interface JNDIProviderAdmin
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.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getObjectInstance(java.lang.Object refInfo,
javax.naming.Name name,
javax.naming.Context context,
java.util.Map<java.lang.String,?> environment)
Resolve the object from the given reference.
|
java.lang.Object |
getObjectInstance(java.lang.Object refInfo,
javax.naming.Name name,
javax.naming.Context context,
java.util.Map<java.lang.String,?> environment,
javax.naming.directory.Attributes attributes)
Resolve the object from the given reference.
|
java.lang.Object getObjectInstance(java.lang.Object refInfo, javax.naming.Name name, javax.naming.Context context, java.util.Map<java.lang.String,?> environment) throws java.lang.Exception
refInfo
- Reference infoname
- the JNDI name associated with this referencecontext
- the JNDI context associated with this referenceenvironment
- the JNDI environment associated with this JNDI contextjava.lang.Exception
- in the event that an error occurs while attempting to
resolve the JNDI reference.java.lang.Object getObjectInstance(java.lang.Object refInfo, javax.naming.Name name, javax.naming.Context context, java.util.Map<java.lang.String,?> environment, javax.naming.directory.Attributes attributes) throws java.lang.Exception
refInfo
- Reference infoname
- the JNDI name associated with this referencecontext
- the JNDI context associated with this referenceenvironment
- the JNDI environment associated with this JNDI contextattributes
- the naming attributes to use when resolving this objectjava.lang.Exception
- in the event that an error occurs while attempting to
resolve the JNDI reference.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0