org.glassfish.osgi.ee.resources
Class ResourceProxy

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

public class ResourceProxy
extends java.lang.Object
implements java.lang.reflect.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(java.lang.String jndiName)
           
 
Method Summary
 void invalidate()
          Sets the state of the proxy as invalid
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.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(java.lang.String jndiName)
Method Detail

invoke

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

invalidate

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

Specified by:
invalidate in interface Invalidate


Copyright © 2011 GlassFish Community. All Rights Reserved.