Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.util
Class NullImplementation

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


public class NullImplementation
extends java.lang.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.NullAddressProvider
          Null implementation of AddressProvider.
static class NullImplementation.NullBackingMapManagerContext
          An implementation of BackingMapManagerContext that does nothing.
static class NullImplementation.NullCacheStore
          An implementation of an CacheStore that does nothing.
static class NullImplementation.NullContinuation
          An implementation of Continuation 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.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.NullPartitionAssignmentStrategy
          An implementation of PartitionAssignmentStrategy that does 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.NullReader
          A reader that does basically 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 AddressProvider getAddressProvider()
          Factory method: Obtain a null implementation of an AddressProvider.
static BackingMapManagerContext getBackingMapManagerContext()
          Factory method: Obtain a null implementation of a BackingMapManagerContext.
static CacheStore getCacheStore()
          Factory method: Obtain a null implementation of a CacheStore.
static java.lang.ClassLoader getClassLoader()
          Factory method: Obtain a null implementation of a ClassLoader.
static Continuation getContinuation()
          Factory method: Obtain a null implementation of a Continuation.
static Converter getConverter()
          Factory method: Obtain a null implementation of a Converter.
static java.io.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 java.util.Enumeration getEnumeration()
          Returns an instance of the null enumerator.
static java.lang.Iterable getIterable()
          Returns an instance of the null iterable.
static java.util.Iterator getIterator()
          Returns an instance of the null iterator.
static java.util.Map getMap()
          Returns an instance of the NullMap.
static ObservableMap getObservableMap()
          Returns an instance of the NullObservableMap.
static java.io.OutputStream getOutputStream()
          Factory method: Obtain a null implementation of a OutputStream.
static PartitionAssignmentStrategy getPartitionAssignmentStrategy()
          Factory method: Obtain a null implementation of a PartitionAssignmentStrategy.
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 java.io.Reader getReader()
          Factory method: Obtain a null implementation of a Reader.
static java.util.Set getSet()
          Returns an instance of the NullSet.
static ValueExtractor getValueExtractor()
          Factory method: Obtain a null implementation of a ValueExtractor.
static java.io.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 java.util.Enumeration getEnumeration()
Returns an instance of the null enumerator.
Returns:
an Enumeration instance with no values to enumerate.

getIterator

public static java.util.Iterator getIterator()
Returns an instance of the null iterator.
Returns:
an Iterator instance with no values to enumerate.

getIterable

public static java.lang.Iterable getIterable()
Returns an instance of the null iterable.
Returns:
an Iterable that will return a null iterator

getSet

public static java.util.Set getSet()
Returns an instance of the NullSet.
Returns:
an empty immutable Set

getMap

public static java.util.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

getReader

public static java.io.Reader getReader()
Factory method: Obtain a null implementation of a Reader.
Returns:
a conforming implementation of Reader that does as little as possible

getWriter

public static java.io.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 java.io.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 java.io.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 java.lang.ClassLoader getClassLoader()
Factory method: Obtain a null implementation of a ClassLoader.
Returns:
a conforming implementation of ClassLoader 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

getCacheStore

public static CacheStore getCacheStore()
Factory method: Obtain a null implementation of a CacheStore.
Returns:
a CacheStore implementation that does as little as possible

getContinuation

public static Continuation getContinuation()
Factory method: Obtain a null implementation of a Continuation.
Returns:
a Continuation implementation that does as little as possible

getPartitionAssignmentStrategy

public static PartitionAssignmentStrategy getPartitionAssignmentStrategy()
Factory method: Obtain a null implementation of a PartitionAssignmentStrategy.
Returns:
a PartitionAssignmentStrategy implementation that does as little as possible

getAddressProvider

public static AddressProvider getAddressProvider()
Factory method: Obtain a null implementation of an AddressProvider.
Returns:
an implementation of AddressProvider that does as little as possible

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


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