org.xmoon.commons
Class CacheBroker

java.lang.Object
  extended byorg.xmoon.commons.CacheBroker

public class CacheBroker
extends java.lang.Object

Author:
Mario NeĆ

Field Summary
private static org.apache.log4j.Logger log
           
private static java.util.Hashtable theCache
           
private static java.util.Hashtable theMappingCache
           
private static java.util.Hashtable theServiceCache
           
 
Constructor Summary
CacheBroker()
           
 
Method Summary
static void add(java.lang.String theName, java.lang.Object obj, java.lang.String type)
           
static void clearChache(java.lang.String type)
           
static boolean contains(java.lang.Object obj, java.lang.String type)
           
static boolean contains(java.lang.String theName, java.lang.String type)
           
static java.lang.Object get(java.lang.String theName, java.lang.String type)
           
static int getCacheInfo(java.lang.String type)
           
static boolean remove(java.lang.String theName, java.lang.String type)
           
private static void selectCache(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log

theCache

private static java.util.Hashtable theCache

theServiceCache

private static java.util.Hashtable theServiceCache

theMappingCache

private static java.util.Hashtable theMappingCache
Constructor Detail

CacheBroker

public CacheBroker()
Method Detail

add

public static void add(java.lang.String theName,
                       java.lang.Object obj,
                       java.lang.String type)
                throws java.lang.Exception
Throws:
java.lang.Exception

get

public static java.lang.Object get(java.lang.String theName,
                                   java.lang.String type)
                            throws java.lang.Exception
Throws:
java.lang.Exception

remove

public static boolean remove(java.lang.String theName,
                             java.lang.String type)
                      throws java.lang.Exception
Throws:
java.lang.Exception

contains

public static boolean contains(java.lang.String theName,
                               java.lang.String type)
                        throws java.lang.Exception
Throws:
java.lang.Exception

contains

public static boolean contains(java.lang.Object obj,
                               java.lang.String type)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getCacheInfo

public static int getCacheInfo(java.lang.String type)
                        throws java.lang.Exception
Throws:
java.lang.Exception

clearChache

public static void clearChache(java.lang.String type)
                        throws java.lang.Exception
Throws:
java.lang.Exception

selectCache

private static void selectCache(java.lang.String type)
                         throws java.lang.Exception
Throws:
java.lang.Exception