GigaSpaces XAP 10.0.1 API

net.jini.config
Class EmptyConfiguration

java.lang.Object
  extended by net.jini.config.AbstractConfiguration
      extended by net.jini.config.EmptyConfiguration
All Implemented Interfaces:
Configuration

public class EmptyConfiguration
extends AbstractConfiguration

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
Author:
Sun Microsystems, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class net.jini.config.AbstractConfiguration
AbstractConfiguration.Primitive
 
Field Summary
static EmptyConfiguration INSTANCE
          A Configuration with no entries.
 
Fields inherited from interface net.jini.config.Configuration
NO_DATA, NO_DEFAULT
 
Method Summary
protected  Object getEntryInternal(String component, String name, Class type, Object data)
          Always throws an exception -- this configuration contains no entries.
 
Methods inherited from class net.jini.config.AbstractConfiguration
getEntry, getEntry, getEntry, validIdentifier, validQualifiedIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final EmptyConfiguration INSTANCE
A Configuration with no entries.

Method Detail

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:
getEntryInternal in class AbstractConfiguration
Parameters:
component - the component being configured
name - the name of the entry for the component
type - the type of object requested
data - an object to use when computing the value of the entry, or Configuration.NO_DATA to specify no data
Returns:
an object created using the information in the entry matching component and name, and using the value of data (unless it is NO_DATA)
Throws:
NullPointerException - if component, name, or type is null
NoSuchEntryException - unless component, name, or type is null
See Also:
Configuration.getEntry

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.