Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.4.0)

E10686-05

oracle.adf.share.statemanager
Class StateManagerScopeAdapter

java.lang.Object
  extended by oracle.adf.share.statemanager.StateManagerScopeAdapter
All Implemented Interfaces:
java.util.Map
Direct Known Subclasses:
HttpStateManagerScopeAdapter

public class StateManagerScopeAdapter
extends java.lang.Object
implements java.util.Map

The state manager specification defines a StateManagerScopeAdapter to make adapt the StateManager to a simple Map interface.

The StateManagerScopeAdapter is instantiated with an ADF scope and an optional JNDI environment Hashtable. The JNDI environment Hashtable may be used to initialize and configure the StateManager. See the DefaultInitialContextFactory.

The StateManagerScopeAdapter works by defining a UUID for the specified scope. The adapter will store this id in the specified scope for later use by other adapters.

Since:
release specific (what release of product did this appear in)

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
static java.lang.String ENV_STATE_MANAGER_POLICY_KEY
           
static java.lang.String STATE_MANAGER_SCOPE_ID_KEY
           
 
Constructor Summary
StateManagerScopeAdapter(java.lang.String scopeName, java.util.Hashtable env)
           
 
Method Summary
 void clear()
           
 boolean containsKey(java.lang.Object p0)
          Method is not supported by the StateManager.
 boolean containsValue(java.lang.Object p0)
          Method is not supported by the StateManager.
 java.util.Set entrySet()
          Method is not supported by the StateManager.
protected  java.lang.Object generateStateManagerId(java.util.Map scope)
           
 java.lang.Object get(java.lang.Object key)
           
protected  java.lang.String getScopeName()
           
 boolean isEmpty()
          Method is not supported by the StateManager.
 java.util.Set keySet()
          Method is not supported by the StateManager.
 java.lang.Object put(java.lang.Object key, java.lang.Object state)
           
 void putAll(java.util.Map p0)
          Method is not supported by the StateManager.
 java.lang.Object remove(java.lang.Object key)
           
 int size()
          Method is not supported by the StateManager.
 java.util.Collection values()
          Method is not supported by the StateManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

STATE_MANAGER_SCOPE_ID_KEY

public static final java.lang.String STATE_MANAGER_SCOPE_ID_KEY
See Also:
Constant Field Values

ENV_STATE_MANAGER_POLICY_KEY

public static final java.lang.String ENV_STATE_MANAGER_POLICY_KEY
See Also:
Constant Field Values
Constructor Detail

StateManagerScopeAdapter

public StateManagerScopeAdapter(java.lang.String scopeName,
                                java.util.Hashtable env)
Method Detail

generateStateManagerId

protected java.lang.Object generateStateManagerId(java.util.Map scope)

size

public int size()
Method is not supported by the StateManager.

Invoking this method on the StateManagerScopeAdapter will result in a RuntimeException.

Specified by:
size in interface java.util.Map

clear

public void clear()
Specified by:
clear in interface java.util.Map

isEmpty

public boolean isEmpty()
Method is not supported by the StateManager.

Invoking this method on the StateManagerScopeAdapter will result in a RuntimeException.

Specified by:
isEmpty in interface java.util.Map

containsKey

public boolean containsKey(java.lang.Object p0)
Method is not supported by the StateManager.

Invoking this method on the StateManagerScopeAdapter will result in a RuntimeException.

Specified by:
containsKey in interface java.util.Map

containsValue

public boolean containsValue(java.lang.Object p0)
Method is not supported by the StateManager.

Invoking this method on the StateManagerScopeAdapter will result in a RuntimeException.

Specified by:
containsValue in interface java.util.Map

values

public java.util.Collection values()
Method is not supported by the StateManager.

Invoking this method on the StateManagerScopeAdapter will result in a RuntimeException.

Specified by:
values in interface java.util.Map

putAll

public void putAll(java.util.Map p0)
Method is not supported by the StateManager.

Invoking this method on the StateManagerScopeAdapter will result in a RuntimeException.

Specified by:
putAll in interface java.util.Map

entrySet

public java.util.Set entrySet()
Method is not supported by the StateManager.

Invoking this method on the StateManagerScopeAdapter will result in a RuntimeException.

Specified by:
entrySet in interface java.util.Map

keySet

public java.util.Set keySet()
Method is not supported by the StateManager.

Invoking this method on the StateManagerScopeAdapter will result in a RuntimeException.

Specified by:
keySet in interface java.util.Map

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object state)
Specified by:
put in interface java.util.Map

getScopeName

protected java.lang.String getScopeName()

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.4.0)

E10686-05

Copyright © 1997, 2011, Oracle. All rights reserved.