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 classAn implementation of an ActionPolicy that allows all actions.static classNull implementation ofAddressProvider.static classAn implementation of BackingMapManagerContext that does nothing.static classAn implementation of an CacheStore that does nothing.static classACollectorimplementation that does nothing.static classA Continuation that does nothing.static classA Converter that does nothing.static classAn implementation of a DeltaCompressor that does nothing and always returns the new stream.static classAn implementation of an EntryProcessor that does nothing and returns Boolean.TRUE as a result of execution.static classAn empty enumerator.static classAn immutable emptyLongArraystatic classA Map that contains nothing and does nothing.static classAn implementation of aMemberIdentityProviderthat returnsnullfor all its methods.static classAn immutable ObservableMap which contains nothing.static classAn OutputStream that does basically nothing.static classAn implementation ofPartitionAssignmentStrategythat does nothing.static classAPersistenceEnvironmentthat does nothing.static classAPersistenceManagerthat does nothing.static classAPersistentStorethat does as little as possible.static classAn implementation of PofContext that does nothing.static classAn implementation of PofHandler that does nothing.static classA reader that does basically nothing.static classAResourceRegistryimplementation that does nothing.static classAn immutable set which contains nothing.static classA ValueExtractor that always results in the passed-in value.static classA writer that does basically nothing. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionPolicyFactory method: Obtain a null implementation of an ActionPolicy.static AddressProviderFactory method: Obtain a null implementation of anAddressProvider.static AutoCloseableFactory method: Obtain a null implementation of anAutoCloseable.static BackingMapManagerContextFactory method: Obtain a null implementation of a BackingMapManagerContext.static CacheStoreFactory method: Obtain a null implementation of a CacheStore.static ClassLoaderFactory 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 DataOutputFactory method: Obtain a null implementation of a DataOutput.static DeltaCompressorFactory method: Obtain a null implementation of a DeltaCompressor.static InvocableMap.EntryProcessorFactory method: Obtain a null implementation of an EntryProcessor.static EnumerationReturns 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 MemberIdentityProviderReturn an instance of a null implementationMemberIdentityProvider.static ObservableMapReturns an instance of the NullObservableMap.static OutputStreamFactory method: Obtain a null implementation of a OutputStream.static PartitionAssignmentStrategyFactory 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 PofContextFactory method: Obtain a null implementation of a PofContext.static PofHandlerFactory method: Obtain a null implementation of a PofHandler.static ReaderFactory method: Obtain a null implementation of a Reader.static ResourceRegistryFactory 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 WriterFactory 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
-