< prev index next >

src/java.base/share/classes/java/util/spi/ResourceBundleProvider.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 33,47 **** * loading resource bundles for named modules. Implementation classes of * this interface are loaded with {@link java.util.ServiceLoader ServiceLoader} * during a call to the * {@link ResourceBundle#getBundle(String, Locale, ClassLoader) * ResourceBundle.getBundle} method. The provider service type is determined by ! * {@code basename+"Provider"}. * * <p> * For example, if the base name is "com.example.app.MyResources", ! * {@code com.example.app.MyResourcesProvider} will be the provider service type: * <pre>{@code * public interface MyResourcesProvider extends ResourceBundleProvider { * } * }</pre> * --- 33,47 ---- * loading resource bundles for named modules. Implementation classes of * this interface are loaded with {@link java.util.ServiceLoader ServiceLoader} * during a call to the * {@link ResourceBundle#getBundle(String, Locale, ClassLoader) * ResourceBundle.getBundle} method. The provider service type is determined by ! * {@code <package name> + ".spi." + <simple name> + "Provider"}. * * <p> * For example, if the base name is "com.example.app.MyResources", ! * {@code com.example.app.spi.MyResourcesProvider} will be the provider service type: * <pre>{@code * public interface MyResourcesProvider extends ResourceBundleProvider { * } * }</pre> *
< prev index next >