com.oracle.coherence.patterns.command
Interface Context


public interface Context

A Context is an object that captures the shared state that zero or more Commands may use during execution.

As Contexts are cached objects (ie: placed in Coherence caches), they need to at least implement Serializable, or better still, implement ExternalizableLite or PortableObject.

Contexts don't need to implement any special methods. The Context interface simply marks that an object is considered a Context against which Commands may be executed.

To register Contexts so that Commands may be executed against them, use a ContextsManager.

Copyright (c) 2008. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.

Author:
Brian Oliver
See Also:
ContextsManager, Command



Copyright © 2016. All rights reserved.