Class 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
    • 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 an AddressProvider.
        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 a Collector.
        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 a Continuation.
        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 a PersistenceEnvironment.
        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 a PersistenceEnvironment.
        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 a PersistenceManager.
        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 a PersistenceManager.
        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 a PersistentStore.
        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 a PersistentStore.
        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 a ResourceRegistry.
        Returns:
        an implementation of ResourceRegistry that does nothing
      • getAutoCloseable

        public static AutoCloseable getAutoCloseable()
        Factory method: Obtain a null implementation of an AutoCloseable.
        Returns:
        an implementation of an AutoCloseable that does nothing
      • getLongArray

        public static <V> LongArray<V> getLongArray()
        Returns an immutable empty LongArray.
        Type Parameters:
        V - the type of values the LongArray would hold
        Returns:
        an immutable empty LongArray