com.jfw.authentication
Class ServicesCache

java.lang.Object
  extended by com.jfw.util.GenericCache
      extended by com.jfw.authentication.ServicesCache
All Implemented Interfaces:
java.util.Observer

public final class ServicesCache
extends GenericCache

Caching the services data.
Implements singleton pattern.

See Also:
GenericCache

Field Summary
 
Fields inherited from class com.jfw.util.GenericCache
isObserver, updateObservable
 
Method Summary
 java.lang.Object getData(java.lang.Object object)
          Return attribute data.
static ServicesCache getInstance()
          Return the only instance of that class.
protected  void initialize()
          Cached data are rturned by ServicesDB.execute(java.util.HashMap).
 
Methods inherited from class com.jfw.util.GenericCache
update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ServicesCache getInstance()
Return the only instance of that class.

Returns:
attribute instance.

initialize

protected void initialize()
                   throws java.lang.Exception
Cached data are rturned by ServicesDB.execute(java.util.HashMap).

Specified by:
initialize in class GenericCache
Throws:
java.lang.Exception

getData

public java.lang.Object getData(java.lang.Object object)
                         throws java.lang.Exception
Return attribute data.

Specified by:
getData in class GenericCache
Parameters:
object - null is expected.
Returns:
attribute data.
Throws:
java.lang.Exception