
The Context.OBJECT_FACTORIES property of the environment,Īnd of the provider resource file associated with If that fails, continue to the next step. To create the object (see getURLContext()). Try the URL context factory corresponding to each URL's scheme id Referenceable with no factory class name,Īnd the address or addresses are StringRefAddrs with If an exception is encountered while creating the factory, Specified in the reference, a SecurityManager must haveīeen installed or the factory creation will fail. Under JDK 1.1, if the factory class must be loaded from a location Return refInfo if the factory cannot be created. Use the named factory to create the object. Or Referenceable containing a factory class name, Otherwise, the following rules are used to create the object: If an object factory builder has been installed, it is used toĬreate a factory for creating the object.

Parameters: builder - The factory builder to install. Once installed, the builder cannot be replaced. (by the security manager's checkSetFactory() method) to do so. The builder can only be installed if the executing thread is allowed Subsequent object factories willīe loaded and created using the installed builder. SetObjectFactoryBuilder() overrides this default policy by installingĪn ObjectFactoryBuilder. See getObjectInstance() and class ObjectFactory for a description

The ObjectFactoryBuilder determines the policy used when
