Package com.tangosol.util
Class NullImplementation
- java.lang.Object
-
- java.lang.ClassLoader
-
- 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
Nested Classes Modifier and Type Class Description static class
NullImplementation.NullActionPolicy
An implementation of an ActionPolicy that allows all actions.static class
NullImplementation.NullAddressProvider
Null implementation ofAddressProvider
.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.NullCollector<V>
ACollector
implementation that does nothing.static class
NullImplementation.NullContinuation<R>
A 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.NullLongArray<V>
An immutable emptyLongArray
static class
NullImplementation.NullMap
A Map that contains nothing and does nothing.static class
NullImplementation.NullMemberIdentityProvider
An implementation of aMemberIdentityProvider
that returnsnull
for all its methods.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 ofPartitionAssignmentStrategy
that does nothing.static class
NullImplementation.NullPersistenceEnvironment<R>
APersistenceEnvironment
that does nothing.static class
NullImplementation.NullPersistenceManager<R>
APersistenceManager
that does nothing.static class
NullImplementation.NullPersistentStore<R>
APersistentStore
that does as little as possible.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.NullResourceRegistry
AResourceRegistry
implementation 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActionPolicy
getActionPolicy()
Factory method: Obtain a null implementation of an ActionPolicy.static AddressProvider
getAddressProvider()
Factory method: Obtain a null implementation of anAddressProvider
.static AutoCloseable
getAutoCloseable()
Factory method: Obtain a null implementation of anAutoCloseable
.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 ClassLoader
getClassLoader()
Factory method: Obtain a null implementation of a ClassLoader.static <V> Collector<V>
getCollector()
Factory method: Obtain a null implementation of aCollector
.static <R> Continuation<R>
getContinuation()
Factory method: Obtain a null implementation of aContinuation
.static <T,R>
Converter<T,R>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 <T> Iterable<T>
getIterable()
Returns an instance of the null iterable.static <T> Iterator<T>
getIterator()
Returns an instance of the null iterator.static <V> LongArray<V>
getLongArray()
Returns an immutable emptyLongArray
.static <K,V>
Map<K,V>getMap()
Returns an instance of the NullMap.static MemberIdentityProvider
getMemberIdentityProvider()
Return an instance of a null implementationMemberIdentityProvider
.static ObservableMap
getObservableMap()
Returns an instance of the NullObservableMap.static OutputStream
getOutputStream()
Factory method: Obtain a null implementation of a OutputStream.static PartitionAssignmentStrategy
getPartitionAssignmentStrategy()
Factory method: Obtain a null implementation of a PartitionAssignmentStrategy.static <R> com.oracle.coherence.persistence.PersistenceEnvironment<R>
getPersistenceEnvironment()
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>
getPersistenceManager()
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>
getPersistentStore()
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
getPofContext()
Factory method: Obtain a null implementation of a PofContext.static PofHandler
getPofHandler()
Factory method: Obtain a null implementation of a PofHandler.static Reader
getReader()
Factory method: Obtain a null implementation of a Reader.static ResourceRegistry
getResourceRegistry()
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>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, 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 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 <T> Iterator<T> getIterator()
Returns an instance of the null iterator.- Returns:
- an Iterator instance with no values to enumerate.
-
getIterable
public static <T> Iterable<T> getIterable()
Returns an instance of the null iterable.- Returns:
- an Iterable that will return a
null iterator
-
getSet
public static <T> Set<T> getSet()
Returns an instance of the NullSet.- Returns:
- an empty immutable Set
-
getMap
public static <K,V> Map<K,V> 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 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 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 <T,R> Converter<T,R> 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 <T,E> ValueExtractor<T,E> 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
-
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
-
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 anAddressProvider
.- Returns:
- an implementation of AddressProvider that does as little as possible
-
getCollector
public static <V> Collector<V> getCollector()
Factory method: Obtain a null implementation of aCollector
.- Returns:
- an implementation of Collector that does as little as possible
-
getContinuation
public static <R> Continuation<R> 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
public static ResourceRegistry getResourceRegistry()
Factory method: Obtain a null implementation of aResourceRegistry
.- Returns:
- an implementation of ResourceRegistry that does nothing
-
getAutoCloseable
public static AutoCloseable getAutoCloseable()
Factory method: Obtain a null implementation of anAutoCloseable
.- Returns:
- an implementation of an AutoCloseable that does nothing
-
getMemberIdentityProvider
public static MemberIdentityProvider getMemberIdentityProvider()
Return an instance of a null implementationMemberIdentityProvider
.- Returns:
- an instance of a null implementation
MemberIdentityProvider
-
-