org.glassfish.osgi.ee.resources
Class ResourceProxy

java.lang.Object
  extended by org.glassfish.osgi.ee.resources.ResourceProxy
All Implemented Interfaces:
InvocationHandler, Invalidate

public class ResourceProxy
extends Object
implements InvocationHandler, Invalidate

ResourceProxy that can delegate to actual objects upon usage.
Does not cache the actual object as the actual object can be re-configured

Author:
Jagadish Ramu

Constructor Summary
ResourceProxy(String jndiName)
           
 
Method Summary
 void invalidate()
          Sets the state of the proxy as invalid
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceProxy

public ResourceProxy(String jndiName)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

invalidate

public void invalidate()
Sets the state of the proxy as invalid

Specified by:
invalidate in interface Invalidate


Copyright © 2012 GlassFish Community. All Rights Reserved.