|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.core.Wrapper
org.objectweb.jac.core.dist.StubWrapper
StubWrapper is a dynamic client stub for org.objectweb.jac. Every method called on an object wrapped by such a wrapper is forwarded to a remote reference. The call is blocking. For non-blocking calls see NonBlockingStubWrapper. This a wrapper class. The invoke method wraps all the methods of a wrappee.
NonBlockingStubWrapper
,
Serialized FormField Summary | |
protected RemoteRef |
remoteRef
The remote reference attached to this stub |
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
Constructor Summary | |
StubWrapper(AspectComponent ac,
RemoteRef remoteRef)
Construct a new dynamic stub. |
|
StubWrapper(AspectComponent ac,
String serverContainer)
A more user-friendly constructor. |
Method Summary | |
Object |
_invoke(Interaction interaction)
Forward a call to the remote reference. |
Object |
construct(ConstructorInvocation invocation)
|
RemoteRef |
getRemoteRef()
The getter method for the remoteRef field. |
Object |
invoke(MethodInvocation invocation)
|
Methods inherited from class org.objectweb.jac.core.Wrapper |
attr, attrdef, defines, getAspectComponent, getAspectComponentName, getExceptionHandlers, proceed, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected RemoteRef remoteRef
Constructor Detail |
public StubWrapper(AspectComponent ac, RemoteRef remoteRef)
remoteRef
- the remote reference associated to the stubpublic StubWrapper(AspectComponent ac, String serverContainer)
serverContainer
- the name of the container where the
server is deployed (can be a regular expression)Method Detail |
public RemoteRef getRemoteRef()
public Object _invoke(Interaction interaction)
public Object invoke(MethodInvocation invocation) throws Throwable
invoke
in interface MethodInterceptor
invoke
in class Wrapper
Throwable
public Object construct(ConstructorInvocation invocation) throws Throwable
construct
in interface ConstructorInterceptor
construct
in class Wrapper
Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |