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
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 Object |
getEntryInternal(String component,
String name,
Class 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 Object getEntryInternal(String component, String name, Class 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 © GigaSpaces.