public abstract class ConfigurationSpi extends Object
Configuration
类。在这个类中的所有抽象方法必须由希望提供配置实现的每个服务提供程序实现。
这个抽象类的子类的实现必须提供一个公共构造函数需要一个Configuration.Parameters
对象作为输入参数。此构造函数也必须要是不了解Configuration.Parameters
输入扔IllegalArgumentException。
Constructor and Description |
---|
ConfigurationSpi() |
Modifier and Type | Method and Description |
---|---|
protected abstract AppConfigurationEntry[] |
engineGetAppConfigurationEntry(String name)
检索指定的appconfigurationentries名称。
|
protected void |
engineRefresh()
刷新和重新加载配置。
|
protected abstract AppConfigurationEntry[] engineGetAppConfigurationEntry(String name)
name
用于索引配置的名称。
protected void engineRefresh()
此方法使此配置对象刷新/重新加载其内容在一个实现依赖的方式。例如,如果这个配置对象存储输入的文件,调用refresh
可能导致文件被重新读取。
这种方法的默认实现不做任何事。这种方法应该重写如果刷新操作是实现所支持的。
SecurityException
如果调用者没有权限更新其配置。
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.