net.jini.config
Class EmptyConfiguration
java.lang.Object
  
net.jini.config.AbstractConfiguration
      
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.
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
INSTANCE
public static final EmptyConfiguration INSTANCE
- A 
Configuration with no entries.
 
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 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 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
 
 
Copyright © GigaSpaces.