Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


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.NullActionPolicy
          An implementation of an ActionPolicy that allows all actions.
static class NullImplementation.NullBackingMapManagerContext
          An implementation of BackingMapManagerContext that does nothing.
static class NullImplementation.NullConverter
          A Converter that does nothing.
static class NullImplementation.NullDeltaCompressor
          An implementation of a DeltaCompressor that does nothing and always returns the new stream.
static class NullImplementation.NullEntryProcessor
          An implementation of an EntryProcessor that does nothing and returns Boolean.TRUE as a result of execution.
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 ActionPolicy getActionPolicy()
          Factory method: Obtain a null implementation of an ActionPolicy.
static BackingMapManagerContext getBackingMapManagerContext()
          Factory method: Obtain a null implementation of a BackingMapManagerContext.
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 DataOutput getDataOutput()
          Factory method: Obtain a null implementation of a DataOutput.
static DeltaCompressor getDeltaCompressor()
          Factory method: Obtain a null implementation of a DeltaCompressor.
static InvocableMap.EntryProcessor getEntryProcessor()
          Factory method: Obtain a null implementation of an EntryProcessor.
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

getDataOutput

public static DataOutput getDataOutput()
Factory method: Obtain a null implementation of a DataOutput.
Returns:
a conforming implementation of DataOutput 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

getBackingMapManagerContext

public static BackingMapManagerContext getBackingMapManagerContext()
Factory method: Obtain a null implementation of a BackingMapManagerContext.
Returns:
a conforming implementation of BackingMapManagerContext that does as little as possible

getEntryProcessor

public static InvocableMap.EntryProcessor getEntryProcessor()
Factory method: Obtain a null implementation of an EntryProcessor.
Returns:
an EntryProcessor implementation that returns Boolean.FALSE

getDeltaCompressor

public static DeltaCompressor getDeltaCompressor()
Factory method: Obtain a null implementation of a DeltaCompressor.
Returns:
a DeltaCompressor implementation that always returns new buffer

getActionPolicy

public static ActionPolicy getActionPolicy()
Factory method: Obtain a null implementation of an ActionPolicy.
Returns:
an ActionPolicy implementation that allows all actions

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.