-
Task
-
Resolution: Done
-
Major
-
None
-
None
The TCK checks support for ConnectionFactory.newInstance(). The current implementation in the jaxr api modules is
public static ConnectionFactory newInstance() throws JAXRException { String factoryName = null; ConnectionFactory factory = null; try { String defaultName = null; factoryName = System.getProperty(SYS_PROP_NAME, defaultName); ClassLoader loader = Thread.currentThread().getContextClassLoader(); Class factoryClass = loader.loadClass(factoryName); factory = (ConnectionFactory) factoryClass.newInstance(); } catch(Throwable e) { throw new JAXRException("Failed to create instance of: "+factoryName, e); } return factory; }
This means that the system property would have to be set and that the user of this API actually has a dependency on the module that provides the implementation.
- relates to
-
AS7-2650 ConnectionFactory.newInstance() does not provide default impl
- Resolved