equal
deleted
inserted
replaced
172 * with the key being the system property defined above. |
172 * with the key being the system property defined above. |
173 * </li> |
173 * </li> |
174 * <li> |
174 * <li> |
175 * Use the service-provider loading facilities, defined by the |
175 * Use the service-provider loading facilities, defined by the |
176 * {@link java.util.ServiceLoader} class, to attempt to locate and load an |
176 * {@link java.util.ServiceLoader} class, to attempt to locate and load an |
177 * implementation of the service. |
177 * implementation of the service using the {@linkplain |
|
178 * java.util.ServiceLoader#load(java.lang.Class) default loading mechanism}: |
|
179 * the service-provider loading facility will use the {@linkplain |
|
180 * java.lang.Thread#getContextClassLoader() current thread's context class loader} |
|
181 * to attempt to load the service. If the context class |
|
182 * loader is null, the {@linkplain |
|
183 * ClassLoader#getSystemClassLoader() system class loader} will be used. |
178 * </li> |
184 * </li> |
179 * <li> |
185 * <li> |
180 * Otherwise, the system-default implementation is returned. |
186 * Otherwise, the system-default implementation is returned. |
181 * </li> |
187 * </li> |
182 * </ul> |
188 * </ul> |
240 * </li> |
246 * </li> |
241 * <li> |
247 * <li> |
242 * If {@code factoryId} is "javax.xml.stream.XMLInputFactory", |
248 * If {@code factoryId} is "javax.xml.stream.XMLInputFactory", |
243 * use the service-provider loading facilities, defined by the |
249 * use the service-provider loading facilities, defined by the |
244 * {@link java.util.ServiceLoader} class, to attempt to locate and load an |
250 * {@link java.util.ServiceLoader} class, to attempt to locate and load an |
245 * implementation of the service. |
251 * implementation of the service using the {@linkplain |
|
252 * java.util.ServiceLoader#load(java.lang.Class) default loading mechanism}: |
|
253 * the service-provider loading facility will use the {@linkplain |
|
254 * java.lang.Thread#getContextClassLoader() current thread's context class loader} |
|
255 * to attempt to load the service. If the context class |
|
256 * loader is null, the {@linkplain |
|
257 * ClassLoader#getSystemClassLoader() system class loader} will be used. |
246 * </li> |
258 * </li> |
247 * <li> |
259 * <li> |
248 * Otherwise, throws a {@link FactoryConfigurationError}. |
260 * Otherwise, throws a {@link FactoryConfigurationError}. |
249 * </li> |
261 * </li> |
250 * </ul> |
262 * </ul> |