org.edg.security.delegation
Class DelegationStorageContainer

java.lang.Object
  |
  +--org.edg.security.delegation.DelegationStorageContainer

public class DelegationStorageContainer
extends java.lang.Object

A container class that creates the delegation storage or returns existing if one exists. NOTE: The class name of the delegation storage instance to be created is given as a parameter named "STORAGE_TYPE_PARAM" inside the java.util.Properties object that is passed within createStorage(Properties obj) call. I.e. Properties object could contain the pair (STORAGE_TYPE_PARAM, org.edg.security.delegation.DelegationStorageMap) for example.


Method Summary
 DelegationStorage createStorage(java.util.Properties config)
          Creates a new DelegationStorage, wraps it inside this Container class and returns it.
static DelegationStorageContainer getInstance()
          Returns the singleton instance of this class.
 DelegationStorage getStorage()
          Returns the existing DelegationStorage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DelegationStorageContainer getInstance()
Returns the singleton instance of this class.

Returns:
DelegationStorageContainer - the singleton

getStorage

public DelegationStorage getStorage()
Returns the existing DelegationStorage

Returns:
DelegationStorage

createStorage

public DelegationStorage createStorage(java.util.Properties config)
                                throws java.lang.Exception
Creates a new DelegationStorage, wraps it inside this Container class and returns it.

Parameters:
config - Properties object
Returns:
DelegationStorage
java.lang.Exception