org.xmoon.commons
Class CacheBroker
java.lang.Object
org.xmoon.commons.CacheBroker
- public class CacheBroker
- extends java.lang.Object
- Author:
- Mario Ne
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 |
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
CacheBroker
public CacheBroker()
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