In addition, the factory class must be public and must have a public constructor that accepts no parameters. The implementation is thread-safe. The mention of URL in the documentation for this class refers to a URL string as defined by RFC 1738 and its related RFCs. It is any string that conforms to the syntax described therein, and may not always have corresponding support in the java.net.URL class or Web browsers. Creates an object using the location or reference information specified.
Exception Creates an object using the location or reference information specified.
Special requirements of this object are supplied using environment . An example of such an environment property is user identity information. An object factory should only throw an exception if it is sure that it is the only intended factory and that no other object factories should be tried. If this factory cannot create an object using the arguments supplied, it should return null. A URL context factory is a special ObjectFactory that creates contexts for resolving URLs or objects whose locations are specified by URLs.