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.Logger
named
net.jini.config
to log information at the following logging
levels:
Level | Description |
---|---|
FAILED | problems getting entries, including getting entries that are not found |
FINE | returning default values |
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, validQualifiedIdentifier
public 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 AbstractConfiguration
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, 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 null
NoSuchEntryException
- unless component
,
name
, or type
is null
Configuration.getEntry
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.