public interface ADFScope<K,V>
extends java.util.Map<K,V>
Defines an interface for ADFScopes.
This interface defines scope operations that are not supported by the base Map scope interface. These operations include: Scope invalidation, scope lifecycle notifications.
A scope user may invalidate a scope by invoking the invalidate() operation on this interface. After an ADFScope is invalidated the scope's state will be unreachable and all cached references to the invalid ADFScope must be nulled. If a scope is used after it is invalidated it may throw a RuntimeException (InvalidStateException).
A scope client may be notified of invalidation events by using the addScopeListener(ADFScopeListener) to register an invalidation listener.
Modifier and Type | Method and Description |
---|---|
void |
addScopeListener(ADFScopeListener listener) |
void |
invalidate() |
java.lang.Object |
putTransient(java.lang.Object key,
java.lang.Object value)
If the scope supports failover then this may be used to notify the
scope that the state does not require failover.
|
void |
removeScopeListener(ADFScopeListener listener) |
java.lang.Object putTransient(java.lang.Object key, java.lang.Object value)
key
- map key for transient objectvalue
- map valuevoid invalidate()
void addScopeListener(ADFScopeListener listener)
void removeScopeListener(ADFScopeListener listener)