Skip navigation links


com.essbase.eas.framework.server.application
Class DefaultServiceContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by com.essbase.eas.framework.server.application.DefaultServiceContext

All Implemented Interfaces:
ServiceContext, java.io.Serializable, java.lang.Cloneable, java.util.Map

public class DefaultServiceContext
extends java.util.HashMap
implements ServiceContext

Extends the HashMap class and implements the ServiceContext interface.

Since:
6.5.2
Version:
6.5.2, 10/01/02
Author:
Hank Cox, Hyperion Solutions, Painted Word
See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>

 

Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>

 

Field Summary
protected  java.util.HashMap requestStorage
           

 

Constructor Summary
DefaultServiceContext()
          Constructs a ServiceContext object with the default size and load factor taken from HashMap
DefaultServiceContext(int initialCapacity)
          constructs a ServiceContext object with the requested initial size.

 

Method Summary
 void dispose()
          clears the request storage and any other fields in this object.
 java.util.Map getRequestScopeStorage()
          retrieves the request storage map for this service context instance.

 

Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values

 

Methods inherited from class java.util.AbstractMap
equals, hashCode, toString

 

Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values

 

Field Detail

requestStorage

protected java.util.HashMap requestStorage

Constructor Detail

DefaultServiceContext

public DefaultServiceContext()
Constructs a ServiceContext object with the default size and load factor taken from HashMap

DefaultServiceContext

public DefaultServiceContext(int initialCapacity)
constructs a ServiceContext object with the requested initial size. If the initial capacity parameter is less than 1, uses a value of 1.
Parameters:
initialCapacity - - the initial capacity of the context.

Method Detail

getRequestScopeStorage

public java.util.Map getRequestScopeStorage()
retrieves the request storage map for this service context instance. Implementing classes should use an independent hashmap.
Specified by:
getRequestScopeStorage in interface ServiceContext

dispose

public void dispose()
clears the request storage and any other fields in this object. Should be used to clean memory after the results of a request have been bundled into the return stream.
Specified by:
dispose in interface ServiceContext

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.