Package com.tangosol.util
Class NullImplementation
java.lang.Object
java.lang.ClassLoader
com.tangosol.util.NullImplementation
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
Nested ClassesModifier and TypeClassDescriptionstatic class
An implementation of an ActionPolicy that allows all actions.static class
Null implementation ofAddressProvider
.static class
An implementation of BackingMapManagerContext that does nothing.static class
An implementation of an CacheStore that does nothing.static class
ACollector
implementation that does nothing.static class
A Continuation that does nothing.static class
A Converter that does nothing.static class
An implementation of a DeltaCompressor that does nothing and always returns the new stream.static class
An implementation of an EntryProcessor that does nothing and returns Boolean.TRUE as a result of execution.static class
An empty enumerator.static class
An immutable emptyLongArray
static class
A Map that contains nothing and does nothing.static class
An implementation of aMemberIdentityProvider
that returnsnull
for all its methods.static class
An immutable ObservableMap which contains nothing.static class
An OutputStream that does basically nothing.static class
An implementation ofPartitionAssignmentStrategy
that does nothing.static class
APersistenceEnvironment
that does nothing.static class
APersistenceManager
that does nothing.static class
APersistentStore
that does as little as possible.static class
An implementation of PofContext that does nothing.static class
An implementation of PofHandler that does nothing.static class
A reader that does basically nothing.static class
AResourceRegistry
implementation that does nothing.static class
An immutable set which contains nothing.static class
A ValueExtractor that always results in the passed-in value.static class
A writer that does basically nothing. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionPolicy
Factory method: Obtain a null implementation of an ActionPolicy.static AddressProvider
Factory method: Obtain a null implementation of anAddressProvider
.static AutoCloseable
Factory method: Obtain a null implementation of anAutoCloseable
.static BackingMapManagerContext
Factory method: Obtain a null implementation of a BackingMapManagerContext.static CacheStore
Factory method: Obtain a null implementation of a CacheStore.static ClassLoader
Factory method: Obtain a null implementation of a ClassLoader.static <V> Collector
<V> Factory method: Obtain a null implementation of aCollector
.static <R> Continuation
<R> Factory method: Obtain a null implementation of aContinuation
.static <T,
R> Converter <T, R> Factory method: Obtain a null implementation of a Converter.static DataOutput
Factory method: Obtain a null implementation of a DataOutput.static DeltaCompressor
Factory method: Obtain a null implementation of a DeltaCompressor.static InvocableMap.EntryProcessor
Factory method: Obtain a null implementation of an EntryProcessor.static Enumeration
Returns an instance of the null enumerator.static <T> Iterable
<T> Returns an instance of the null iterable.static <T> Iterator
<T> Returns an instance of the null iterator.static <V> LongArray
<V> Returns an immutable emptyLongArray
.static <K,
V> Map <K, V> getMap()
Returns an instance of the NullMap.static MemberIdentityProvider
Return an instance of a null implementationMemberIdentityProvider
.static ObservableMap
Returns an instance of the NullObservableMap.static OutputStream
Factory method: Obtain a null implementation of a OutputStream.static PartitionAssignmentStrategy
Factory method: Obtain a null implementation of a PartitionAssignmentStrategy.static <R> com.oracle.coherence.persistence.PersistenceEnvironment
<R> Factory method: Obtain a null implementation of aPersistenceEnvironment
.static <R> com.oracle.coherence.persistence.PersistenceEnvironment
<R> getPersistenceEnvironment
(Class<R> clz) Factory method: Obtain a null implementation of aPersistenceEnvironment
.static <R> com.oracle.coherence.persistence.PersistenceManager
<R> Factory method: Obtain a null implementation of aPersistenceManager
.static <R> com.oracle.coherence.persistence.PersistenceManager
<R> getPersistenceManager
(Class<R> clz) Factory method: Obtain a null implementation of aPersistenceManager
.static <R> com.oracle.coherence.persistence.PersistentStore
<R> Factory method: Obtain a null implementation of aPersistentStore
.static <R> com.oracle.coherence.persistence.PersistentStore
<R> getPersistentStore
(Class<R> clz) Factory method: Obtain a null implementation of aPersistentStore
.static PofContext
Factory method: Obtain a null implementation of a PofContext.static PofHandler
Factory method: Obtain a null implementation of a PofHandler.static Reader
Factory method: Obtain a null implementation of a Reader.static ResourceRegistry
Factory method: Obtain a null implementation of aResourceRegistry
.static <T> Set
<T> getSet()
Returns an instance of the NullSet.static <T,
E> ValueExtractor <T, E> Factory method: Obtain a null implementation of a ValueExtractor.static Writer
Factory method: Obtain a null implementation of a Writer.Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Method Details
-
getEnumeration
Returns an instance of the null enumerator.- Returns:
- an Enumeration instance with no values to enumerate.
-
getIterator
Returns an instance of the null iterator.- Returns:
- an Iterator instance with no values to enumerate.
-
getIterable
Returns an instance of the null iterable.- Returns:
- an Iterable that will return a
null iterator
-
getSet
Returns an instance of the NullSet.- Returns:
- an empty immutable Set
-
getMap
Returns an instance of the NullMap.- Returns:
- an empty Map that does nothing
-
getObservableMap
Returns an instance of the NullObservableMap.- Returns:
- an empty ObservableMap and does nothing
-
getReader
Factory method: Obtain a null implementation of a Reader.- Returns:
- a conforming implementation of Reader that does as little as possible
-
getWriter
Factory method: Obtain a null implementation of a Writer.- Returns:
- a conforming implementation of Writer that does as little as possible
-
getOutputStream
Factory method: Obtain a null implementation of a OutputStream.- Returns:
- a conforming implementation of OutputStream that does as little as possible
-
getDataOutput
Factory method: Obtain a null implementation of a DataOutput.- Returns:
- a conforming implementation of DataOutput that does as little as possible
-
getConverter
Factory method: Obtain a null implementation of a Converter.- Returns:
- a conforming implementation of Converter that does as little as possible
-
getValueExtractor
Factory method: Obtain a null implementation of a ValueExtractor.- Returns:
- a ValueExtractor that does not actually extract anything from the passed value
-
getClassLoader
Factory method: Obtain a null implementation of a ClassLoader.- Returns:
- a conforming implementation of ClassLoader that does as little as possible
-
getPofContext
Factory method: Obtain a null implementation of a PofContext.- Returns:
- a conforming implementation of PofContext that does as little as possible
-
getPofHandler
Factory method: Obtain a null implementation of a PofHandler.- Returns:
- a conforming implementation of PofHandler that does as little as possible
-
getBackingMapManagerContext
Factory method: Obtain a null implementation of a BackingMapManagerContext.- Returns:
- a conforming implementation of BackingMapManagerContext that does as little as possible
-
getEntryProcessor
Factory method: Obtain a null implementation of an EntryProcessor.- Returns:
- an EntryProcessor implementation that returns Boolean.FALSE
-
getDeltaCompressor
Factory method: Obtain a null implementation of a DeltaCompressor.- Returns:
- a DeltaCompressor implementation that always returns new buffer
-
getActionPolicy
Factory method: Obtain a null implementation of an ActionPolicy.- Returns:
- an ActionPolicy implementation that allows all actions
-
getCacheStore
Factory method: Obtain a null implementation of a CacheStore.- Returns:
- a CacheStore implementation that does as little as possible
-
getPartitionAssignmentStrategy
Factory method: Obtain a null implementation of a PartitionAssignmentStrategy.- Returns:
- a PartitionAssignmentStrategy implementation that does as little as possible
-
getAddressProvider
Factory method: Obtain a null implementation of anAddressProvider
.- Returns:
- an implementation of AddressProvider that does as little as possible
-
getCollector
Factory method: Obtain a null implementation of aCollector
.- Returns:
- an implementation of Collector that does as little as possible
-
getContinuation
Factory method: Obtain a null implementation of aContinuation
.- Returns:
- an implementation of Continuation that does nothing
-
getPersistenceEnvironment
public static <R> com.oracle.coherence.persistence.PersistenceEnvironment<R> getPersistenceEnvironment()Factory method: Obtain a null implementation of aPersistenceEnvironment
.- Returns:
- an implementation of PersistenceEnvironment that does as little as possible
-
getPersistenceEnvironment
public static <R> com.oracle.coherence.persistence.PersistenceEnvironment<R> getPersistenceEnvironment(Class<R> clz) Factory method: Obtain a null implementation of aPersistenceEnvironment
.- Parameters:
clz
- the type of a raw, environment specific object representation- Returns:
- an implementation of PersistenceEnvironment that does as little as possible
-
getPersistenceManager
public static <R> com.oracle.coherence.persistence.PersistenceManager<R> getPersistenceManager()Factory method: Obtain a null implementation of aPersistenceManager
.- Returns:
- an implementation of PersistenceManager that does as little as possible
-
getPersistenceManager
public static <R> com.oracle.coherence.persistence.PersistenceManager<R> getPersistenceManager(Class<R> clz) Factory method: Obtain a null implementation of aPersistenceManager
.- Parameters:
clz
- the type of a raw, environment specific object representation- Returns:
- an implementation of PersistenceManager that does as little as possible
-
getPersistentStore
public static <R> com.oracle.coherence.persistence.PersistentStore<R> getPersistentStore()Factory method: Obtain a null implementation of aPersistentStore
.- Returns:
- an implementation of PersistentStore that does as little as possible
-
getPersistentStore
public static <R> com.oracle.coherence.persistence.PersistentStore<R> getPersistentStore(Class<R> clz) Factory method: Obtain a null implementation of aPersistentStore
.- Parameters:
clz
- the type of a raw, environment specific object representation- Returns:
- an implementation of PersistentStore that does as little as possible
-
getResourceRegistry
Factory method: Obtain a null implementation of aResourceRegistry
.- Returns:
- an implementation of ResourceRegistry that does nothing
-
getAutoCloseable
Factory method: Obtain a null implementation of anAutoCloseable
.- Returns:
- an implementation of an AutoCloseable that does nothing
-
getLongArray
Returns an immutable emptyLongArray
. -
getMemberIdentityProvider
Return an instance of a null implementationMemberIdentityProvider
.- Returns:
- an instance of a null implementation
MemberIdentityProvider
-