public interface ResourceBundleControlProvider
ResourceBundle.Control接口。的
ResourceBundle.getBundle工厂方法,不
ResourceBundle.Control实例的
default resource bundle loading behavior可以
ResourceBundleControlProvider实现改性。
提供者必须使用Java Extension Mechanism安装扩展。参考ServiceLoader为推广包装。任何安装ResourceBundleControlProvider实现在ResourceBundle类加载时间使用ServiceLoader加载。
ResourceBundle.getBundle,
ServiceLoader.loadInstalled(Class)
| Modifier and Type | Method and Description |
|---|---|
ResourceBundle.Control |
getControl(String baseName)
返回一个
ResourceBundle.Control实例是用来处理资源束为给定的
baseName加载。
|
ResourceBundle.Control getControl(String baseName)
ResourceBundle.Control实例是用来处理资源束为给定的
baseName加载。这种方法必须返回
null如果给定的
baseName不是由该提供商。
baseName -资源束的基本名称
ResourceBundle.Control实例,或
null如果给定的
baseName不适用于此提供程序。
null
baseName
NullPointerException
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.