org.shiftone.cache
Class CacheProxy
java.lang.Object
org.shiftone.cache.CacheProxy
- public class CacheProxy
- extends java.lang.Object
Static class CacheProxy can be used to create cache proxy objects of
instances of objects that implement an interface.
Thing thing = new ThingImpl();
Thing cachedThing =
(Thing)CacheProxy.newProxyInstance(thing, Thing.class, cache);
cachedThing.doThing();
- Version:
- $Revision: 1.7 $
- Author:
- Jeff Drost
Method Summary |
static java.lang.Object |
newProxyInstance(java.lang.ClassLoader loader,
java.lang.Object target,
java.lang.Class iface,
Cache cache)
|
static java.lang.Object |
newProxyInstance(java.lang.Object target,
java.lang.Class iface,
Cache cache)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheProxy
public CacheProxy()
newProxyInstance
public static java.lang.Object newProxyInstance(java.lang.ClassLoader loader,
java.lang.Object target,
java.lang.Class iface,
Cache cache)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
newProxyInstance
public static java.lang.Object newProxyInstance(java.lang.Object target,
java.lang.Class iface,
Cache cache)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException