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 classNullImplementation.NullActionPolicyAn implementation of an ActionPolicy that allows all actions.static classNullImplementation.NullAddressProviderNull implementation ofAddressProvider.static classNullImplementation.NullBackingMapManagerContextAn implementation of BackingMapManagerContext that does nothing.static classNullImplementation.NullCacheStoreAn implementation of an CacheStore that does nothing.static classNullImplementation.NullCollector<V>ACollectorimplementation that does nothing.static classNullImplementation.NullContinuation<R>A Continuation that does nothing.static classNullImplementation.NullConverterA Converter that does nothing.static classNullImplementation.NullDeltaCompressorAn implementation of a DeltaCompressor that does nothing and always returns the new stream.static classNullImplementation.NullEntryProcessorAn implementation of an EntryProcessor that does nothing and returns Boolean.TRUE as a result of execution.static classNullImplementation.NullEnumeratorAn empty enumerator.static classNullImplementation.NullLongArray<V>An immutable emptyLongArraystatic classNullImplementation.NullMapA Map that contains nothing and does nothing.static classNullImplementation.NullMemberIdentityProviderAn implementation of aMemberIdentityProviderthat returnsnullfor all its methods.static classNullImplementation.NullObservableMapAn immutable ObservableMap which contains nothing.static classNullImplementation.NullOutputStreamAn OutputStream that does basically nothing.static classNullImplementation.NullPartitionAssignmentStrategyAn implementation ofPartitionAssignmentStrategythat does nothing.static classNullImplementation.NullPersistenceEnvironment<R>APersistenceEnvironmentthat does nothing.static classNullImplementation.NullPersistenceManager<R>APersistenceManagerthat does nothing.static classNullImplementation.NullPersistentStore<R>APersistentStorethat does as little as possible.static classNullImplementation.NullPofContextAn implementation of PofContext that does nothing.static classNullImplementation.NullPofHandlerAn implementation of PofHandler that does nothing.static classNullImplementation.NullReaderA reader that does basically nothing.static classNullImplementation.NullResourceRegistryAResourceRegistryimplementation that does nothing.static classNullImplementation.NullSetAn immutable set which contains nothing.static classNullImplementation.NullValueExtractorA ValueExtractor that always results in the passed-in value.static classNullImplementation.NullWriterA writer that does basically nothing.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActionPolicygetActionPolicy()Factory method: Obtain a null implementation of an ActionPolicy.static AddressProvidergetAddressProvider()Factory method: Obtain a null implementation of anAddressProvider.static AutoCloseablegetAutoCloseable()Factory method: Obtain a null implementation of anAutoCloseable.static BackingMapManagerContextgetBackingMapManagerContext()Factory method: Obtain a null implementation of a BackingMapManagerContext.static CacheStoregetCacheStore()Factory method: Obtain a null implementation of a CacheStore.static ClassLoadergetClassLoader()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 DataOutputgetDataOutput()Factory method: Obtain a null implementation of a DataOutput.static DeltaCompressorgetDeltaCompressor()Factory method: Obtain a null implementation of a DeltaCompressor.static InvocableMap.EntryProcessorgetEntryProcessor()Factory method: Obtain a null implementation of an EntryProcessor.static EnumerationgetEnumeration()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 MemberIdentityProvidergetMemberIdentityProvider()Return an instance of a null implementationMemberIdentityProvider.static ObservableMapgetObservableMap()Returns an instance of the NullObservableMap.static OutputStreamgetOutputStream()Factory method: Obtain a null implementation of a OutputStream.static PartitionAssignmentStrategygetPartitionAssignmentStrategy()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 PofContextgetPofContext()Factory method: Obtain a null implementation of a PofContext.static PofHandlergetPofHandler()Factory method: Obtain a null implementation of a PofHandler.static ReadergetReader()Factory method: Obtain a null implementation of a Reader.static ResourceRegistrygetResourceRegistry()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 WritergetWriter()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
-
-