Package net.jini.config
Class EmptyConfiguration
java.lang.Object
net.jini.config.AbstractConfiguration
net.jini.config.EmptyConfiguration
- All Implemented Interfaces:
Configuration
A
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.- Since:
- 2.0
This implementation uses the
Loggernamednet.jini.configto log information at the following logging levels:net.jini.configLevel Description FINEproblems getting entries, including getting entries that are not found FINEreturning default values - Author:
- Sun Microsystems, Inc.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.jini.config.AbstractConfiguration
AbstractConfiguration.Primitive -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EmptyConfigurationAConfigurationwith no entries.Fields inherited from interface net.jini.config.Configuration
NO_DATA, NO_DEFAULT -
Method Summary
Methods inherited from class net.jini.config.AbstractConfiguration
getEntry, getEntry, getEntry, validIdentifier, validQualifiedIdentifier
-
Field Details
-
INSTANCE
AConfigurationwith no entries.
-
-
Method Details
-
getEntryInternal
protected Object getEntryInternal(String component, String name, Class type, Object data) throws NoSuchEntryException Always throws an exception -- this configuration contains no entries.- Specified by:
getEntryInternalin classAbstractConfiguration- Parameters:
component- 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, orConfiguration.NO_DATAto specify no data- Returns:
- an object created using the information in the entry matching
componentandname, and using the value ofdata(unless it isNO_DATA) - Throws:
NullPointerException- ifcomponent,name, ortypeisnullNoSuchEntryException- unlesscomponent,name, ortypeisnull- See Also:
-