Class StubInvocationHandlerImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
,org.glassfish.pfl.basic.proxy.LinkedInvocationHandler
public final class StubInvocationHandlerImpl extends java.lang.Object implements org.glassfish.pfl.basic.proxy.LinkedInvocationHandler
-
-
Field Summary
Fields Modifier and Type Field Description private PresentationManager.ClassData
classData
private PresentationManager
pm
private java.lang.reflect.Proxy
self
private Object
stub
-
Constructor Summary
Constructors Constructor Description StubInvocationHandlerImpl(PresentationManager pm, PresentationManager.ClassData classData, Object stub)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.Proxy
getProxy()
java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
private boolean
isLocal(Delegate delegate)
private java.lang.Object
privateInvoke(Delegate delegate, java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
Invoke the given method with the args and return the result.void
setProxy(java.lang.reflect.Proxy self)
private void
takingLocalBranch()
private void
takingRemoteBranch()
-
-
-
Field Detail
-
classData
private transient PresentationManager.ClassData classData
-
pm
private transient PresentationManager pm
-
stub
private transient Object stub
-
self
private transient java.lang.reflect.Proxy self
-
-
Constructor Detail
-
StubInvocationHandlerImpl
public StubInvocationHandlerImpl(PresentationManager pm, PresentationManager.ClassData classData, Object stub)
-
-
Method Detail
-
setProxy
public void setProxy(java.lang.reflect.Proxy self)
- Specified by:
setProxy
in interfaceorg.glassfish.pfl.basic.proxy.LinkedInvocationHandler
-
getProxy
public java.lang.reflect.Proxy getProxy()
- Specified by:
getProxy
in interfaceorg.glassfish.pfl.basic.proxy.LinkedInvocationHandler
-
isLocal
private boolean isLocal(Delegate delegate)
-
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 interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
takingRemoteBranch
@InfoMethod private void takingRemoteBranch()
-
takingLocalBranch
@InfoMethod private void takingLocalBranch()
-
privateInvoke
private java.lang.Object privateInvoke(Delegate delegate, java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
Invoke the given method with the args and return the result. This may result in a remote invocation.- Parameters:
proxy
- The proxy used for this class (null if not using java.lang.reflect.Proxy)- Throws:
java.lang.Throwable
-
-