org.hardtokenmgmt.core.util
Class ControllerCache

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

public class ControllerCache
extends java.lang.Object

This is a help class used to cache all instanciated and to make them singeltons controllers to save resources.

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

Constructor Summary
ControllerCache()
           
 
Method Summary
static IController getControllerInstance(java.lang.String classPath)
          Method returning a IController object given an classpath.
static void removeControllerInstance(java.lang.String classPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerCache

public ControllerCache()
Method Detail

getControllerInstance

public static IController getControllerInstance(java.lang.String classPath)
Method returning a IController object given an classpath. If the controller already have been instanced once it is returned from the cache.

Returns:
the controller or null if the controller couldn't be created

removeControllerInstance

public static void removeControllerInstance(java.lang.String classPath)