org.hardtokenmgmt.core.util
Class ControllerMemory

java.lang.Object
  extended by org.hardtokenmgmt.core.util.ControllerMemory

public class ControllerMemory
extends java.lang.Object

Class used as non-persistent memory that can be used within and between controllers to pass object data.

Version:
$Id$
Author:
Philip Vendil 2007 feb 18

Constructor Summary
ControllerMemory()
           
 
Method Summary
 java.lang.Object getData(java.lang.String key)
          Retrieves the data previous put by the using the key.
static ControllerMemory getInstance()
           
 void putData(java.lang.String key, java.lang.Object data)
          Sets the data associaed with a given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerMemory

public ControllerMemory()
Method Detail

getInstance

public static ControllerMemory getInstance()

getData

public java.lang.Object getData(java.lang.String key)
Retrieves the data previous put by the using the key. The value of the key is defined by the calling controller.

Parameters:
key -
Returns:
the value associated with the key or null if it haven't been set.

putData

public void putData(java.lang.String key,
                    java.lang.Object data)
Sets the data associaed with a given key. The value of the key is defined by the calling controller.

Parameters:
data - can be any java object.