Class DefaultContext

java.lang.Object
net.algart.contexts.AbstractContext
net.algart.contexts.DefaultContext
All Implemented Interfaces:
ArrayMemoryContext, ArrayThreadPoolContext, Context, InterruptionContext, ProgressUpdater, StatusUpdater

An adapter class containing the simplest ("empty") implementations of the following standard contexts: InterruptionContext, ArrayMemoryContext, ArrayThreadPoolContext, ProgressUpdater, StatusUpdater. See comments to the methods of this class to clarify behavior of this implementation.

This class is an inheritor of AbstractContext, and all its constructors calls the superconstructor with the argument useServiceLoader=true. So, this class can serve requests not only for the standard context listed above, but also for any other contexts, that are specified in service providers for Context interface.

This class is a good possible superclass for implementation custom behavior of the contexts or for overriding the behavior of an existing context, specified as a service provider.

Author:
Daniel Alievsky