jdk/src/java.base/share/classes/java/util/spi/ResourceBundleProvider.java
changeset 45439 5673d77a787b
parent 43712 5dfd0950317c
equal deleted inserted replaced
45438:243c3da2cb0c 45439:5673d77a787b
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    33  * loading resource bundles for named modules. Implementation classes of
    33  * loading resource bundles for named modules. Implementation classes of
    34  * this interface are loaded with {@link java.util.ServiceLoader ServiceLoader}
    34  * this interface are loaded with {@link java.util.ServiceLoader ServiceLoader}
    35  * during a call to the
    35  * during a call to the
    36  * {@link ResourceBundle#getBundle(String, Locale, ClassLoader)
    36  * {@link ResourceBundle#getBundle(String, Locale, ClassLoader)
    37  * ResourceBundle.getBundle} method. The provider service type is determined by
    37  * ResourceBundle.getBundle} method. The provider service type is determined by
    38  * {@code basename+"Provider"}.
    38  * {@code <package name> + ".spi." + <simple name> + "Provider"}.
    39  *
    39  *
    40  * <p>
    40  * <p>
    41  * For example, if the base name is "com.example.app.MyResources",
    41  * For example, if the base name is "com.example.app.MyResources",
    42  * {@code com.example.app.MyResourcesProvider} will be the provider service type:
    42  * {@code com.example.app.spi.MyResourcesProvider} will be the provider service type:
    43  * <pre>{@code
    43  * <pre>{@code
    44  * public interface MyResourcesProvider extends ResourceBundleProvider {
    44  * public interface MyResourcesProvider extends ResourceBundleProvider {
    45  * }
    45  * }
    46  * }</pre>
    46  * }</pre>
    47  *
    47  *