CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.util
Class NullImplementation

java.lang.Object
  extended by java.lang.ClassLoader
      extended by com.tangosol.util.NullImplementation

public class NullImplementation
extends ClassLoader

A collection of classes that do nothing. For each class implemented, a factory method will exist following the naming convention "get" plus the class or interface name.

Author:
cp 2000.08.02

Nested Class Summary
static class NullImplementation.NullConverter
          A Converter that does nothing.
static class NullImplementation.NullEnumerator
          An empty enumerator.
static class NullImplementation.NullFlatRegistry
          A FlatRegistry that contains nothing.
static class NullImplementation.NullMap
          A Map that contains nothing and does nothing.
static class NullImplementation.NullObservableMap
          An immutable ObservableMap which contains nothing.
static class NullImplementation.NullOutputStream
          An OutputStream that does basically nothing.
static class NullImplementation.NullPofContext
          An implementation of PofContext that does nothing.
static class NullImplementation.NullPofHandler
          An implementation of PofHandler that does nothing.
static class NullImplementation.NullSet
          An immutable set which contains nothing.
static class NullImplementation.NullValueExtractor
          A ValueExtractor that always results in the passed-in value.
static class NullImplementation.NullWriter
          A writer that does basically nothing.
 
Method Summary
static ClassLoader getClassLoader()
          Factory method: Obtain a null implementation of a ClassLoader.
static Converter getConverter()
          Factory method: Obtain a null implementation of a Converter.
static Enumeration getEnumeration()
          Returns an instance of the null enumerator.
static FlatRegistry getFlatRegistry()
          Factory method: Obtain a null implementation of a FlatRegistry.
static Iterator getIterator()
          Returns an instance of the null iterator.
static Map getMap()
          Returns an instance of the NullMap.
static ObservableMap getObservableMap()
          Returns an instance of the NullObservableMap.
static OutputStream getOutputStream()
          Factory method: Obtain a null implementation of a OutputStream.
static PofContext getPofContext()
          Factory method: Obtain a null implementation of a PofContext.
static PofHandler getPofHandler()
          Factory method: Obtain a null implementation of a PofHandler.
static Set getSet()
          Returns an instance of the NullSet.
static ValueExtractor getValueExtractor()
          Factory method: Obtain a null implementation of a ValueExtractor.
static Writer getWriter()
          Factory method: Obtain a null implementation of a Writer.
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 

Method Detail

getEnumeration

public static Enumeration getEnumeration()
Returns an instance of the null enumerator.

Returns:
an Enumeration instance with no values to enumerate.

getIterator

public static Iterator getIterator()
Returns an instance of the null iterator.

Returns:
an Iterator instance with no values to enumerate.

getSet

public static Set getSet()
Returns an instance of the NullSet.

Returns:
an empty immutable Set

getMap

public static Map getMap()
Returns an instance of the NullMap.

Returns:
an empty Map that does nothing

getObservableMap

public static ObservableMap getObservableMap()
Returns an instance of the NullObservableMap.

Returns:
an empty ObservableMap and does nothing

getWriter

public static Writer getWriter()
Factory method: Obtain a null implementation of a Writer.

Returns:
a conforming implementation of Writer that does as little as possible

getOutputStream

public static OutputStream getOutputStream()
Factory method: Obtain a null implementation of a OutputStream.

Returns:
a conforming implementation of OutputStream that does as little as possible

getConverter

public static Converter getConverter()
Factory method: Obtain a null implementation of a Converter.

Returns:
a conforming implementation of Converter that does as little as possible

getValueExtractor

public static ValueExtractor getValueExtractor()
Factory method: Obtain a null implementation of a ValueExtractor.

Returns:
a ValueExtractor that does not actually extract anything from the passed value

getClassLoader

public static ClassLoader getClassLoader()
Factory method: Obtain a null implementation of a ClassLoader.

Returns:
a conforming implementation of ClassLoader that does as little as possible

getFlatRegistry

public static FlatRegistry getFlatRegistry()
Factory method: Obtain a null implementation of a FlatRegistry.

Returns:
a conforming implementation of FlatRegistry that does as little as possible

getPofContext

public static PofContext getPofContext()
Factory method: Obtain a null implementation of a PofContext.

Returns:
a conforming implementation of PofContext that does as little as possible

getPofHandler

public static PofHandler getPofHandler()
Factory method: Obtain a null implementation of a PofHandler.

Returns:
a conforming implementation of PofHandler that does as little as possible

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation