osgi / design

OSGi design repository
Other
152 stars 38 forks source link

JNDI Provider Admin should support javax.nam.ing.Context.OBJECT_FACTORIES #14

Open bjhargrave opened 12 years ago

bjhargrave commented 12 years ago

Original bug ID: BZ#138 From: M Nuttall <mnuttall@uk.ibm.com> Reported version: R4 V4.2

bjhargrave commented 12 years ago

Comment author: M Nuttall <mnuttall@uk.ibm.com>

The algorithm presented in the OSGI Enterprise 4.2 Specification, section 126.4, "JNDI Provider Admin service" lists seven steps that are to be taken when converting a description object to a requested object.

A new step should be inserted before the current step 7, in which if javax.naming.Context.OBJECT_FACTORIES is set as an environment or system property, then its value should be handled as per the existing javadoc. This states:

'Constant that holds the name of the environment property for specifying the list of object factories to use. The value of the property should be a colon-separated list of the fully qualified class names of factory classes that will create an object given information about the object. This property may be specified in the environment, an applet parameter, a system property, or one or more resource files. The value of this constant is "java.naming.factory.object".'