public class EmptyConfiguration extends AbstractConfiguration
Configuration with no entries. Applications can use an
instance of this class to simplify handling cases where no configuration is
specified rather than, for example, checking for a null
configuration.AbstractConfiguration.Primitive<T>| Modifier and Type | Field and Description |
|---|---|
static EmptyConfiguration |
INSTANCE
A
Configuration with no entries. |
NO_DATA, NO_DEFAULT| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
getEntryInternal(String component,
String name,
Class<T> type,
Object data)
Always throws an exception -- this configuration contains no entries.
|
getEntry, getEntry, getEntry, validIdentifier, validQualifiedIdentifierpublic static final EmptyConfiguration INSTANCE
Configuration with no entries.protected <T> T getEntryInternal(String component, String name, Class<T> type, Object data) throws NoSuchEntryException
getEntryInternal in class AbstractConfigurationT - the type of object requestedcomponent - the component being configuredname - the name of the entry for the componenttype - the type of object requesteddata - an object to use when computing the value of the entry, or
Configuration.NO_DATA to specify no datacomponent and name, and using the value of
data (unless it is NO_DATA)NullPointerException - if component,
name, or type is nullNoSuchEntryException - unless component,
name, or type is nullConfiguration.getEntryCopyright © 2016–2018 The Apache Software Foundation. All rights reserved.