jaxp/src/javax/xml/stream/XMLOutputFactory.java
changeset 20581 65d17ea72da3
parent 17264 3aff554ad461
child 21997 65d2e8e1d666
equal deleted inserted replaced
20580:ec467abf6fc9 20581:65d17ea72da3
   148    *     with the key being the system property defined above.
   148    *     with the key being the system property defined above.
   149    * </li>
   149    * </li>
   150    * <li>
   150    * <li>
   151    *   Use the service-provider loading facilities, defined by the
   151    *   Use the service-provider loading facilities, defined by the
   152    *   {@link java.util.ServiceLoader} class, to attempt to locate and load an
   152    *   {@link java.util.ServiceLoader} class, to attempt to locate and load an
   153    *   implementation of the service.
   153    *   implementation of the service using the {@linkplain
       
   154    *   java.util.ServiceLoader#load(java.lang.Class) default loading mechanism}:
       
   155    *   the service-provider loading facility will use the {@linkplain
       
   156    *   java.lang.Thread#getContextClassLoader() current thread's context class loader}
       
   157    *   to attempt to load the service. If the context class
       
   158    *   loader is null, the {@linkplain
       
   159    *   ClassLoader#getSystemClassLoader() system class loader} will be used.
   154    * </li>
   160    * </li>
   155    * <li>
   161    * <li>
   156    *   Otherwise, the system-default implementation is returned.
   162    *   Otherwise, the system-default implementation is returned.
   157    * </li>
   163    * </li>
   158    * <p>
   164    * <p>
   214    * </li>
   220    * </li>
   215    * <li>
   221    * <li>
   216    *   If {@code factoryId} is "javax.xml.stream.XMLOutputFactory",
   222    *   If {@code factoryId} is "javax.xml.stream.XMLOutputFactory",
   217    *   use the service-provider loading facilities, defined by the
   223    *   use the service-provider loading facilities, defined by the
   218    *   {@link java.util.ServiceLoader} class, to attempt to locate and load an
   224    *   {@link java.util.ServiceLoader} class, to attempt to locate and load an
   219    *   implementation of the service.
   225    *   implementation of the service using the {@linkplain
       
   226    *   java.util.ServiceLoader#load(java.lang.Class) default loading mechanism}:
       
   227    *   the service-provider loading facility will use the {@linkplain
       
   228    *   java.lang.Thread#getContextClassLoader() current thread's context class loader}
       
   229    *   to attempt to load the service. If the context class
       
   230    *   loader is null, the {@linkplain
       
   231    *   ClassLoader#getSystemClassLoader() system class loader} will be used.
   220    * </li>
   232    * </li>
   221    * <li>
   233    * <li>
   222    *   Otherwise, throws a {@link FactoryConfigurationError}.
   234    *   Otherwise, throws a {@link FactoryConfigurationError}.
   223    * </li>
   235    * </li>
   224    * </ul>
   236    * </ul>