org.objectweb.jac.aspects.distribution
Class BroadcastingAC.BroadcastingWrapper

java.lang.Object
  extended byorg.objectweb.jac.core.Wrapper
      extended byorg.objectweb.jac.aspects.distribution.BroadcastingAC.BroadcastingWrapper
All Implemented Interfaces:
Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
Enclosing class:
BroadcastingAC

public class BroadcastingAC.BroadcastingWrapper
extends Wrapper

This wrapper wraps the broadcaster with a wrapping method that broadcast all the calls to the remote replicas.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jac.core.Wrapper
ac, cr
 
Constructor Summary
BroadcastingAC.BroadcastingWrapper(AspectComponent ac, String hostExpr)
           
 
Method Summary
 Object broadcast(Interaction interaction)
          Performs a broadcasting.
 Object construct(ConstructorInvocation invocation)
           
 void invalidate()
           
 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
 

Constructor Detail

BroadcastingAC.BroadcastingWrapper

public BroadcastingAC.BroadcastingWrapper(AspectComponent ac,
                                          String hostExpr)
Method Detail

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable
Specified by:
invoke in interface MethodInterceptor
Overrides:
invoke in class Wrapper
Throws:
Throwable

construct

public Object construct(ConstructorInvocation invocation)
                 throws Throwable
Specified by:
construct in interface ConstructorInterceptor
Overrides:
construct in class Wrapper
Throws:
Throwable

invalidate

public void invalidate()

broadcast

public Object broadcast(Interaction interaction)
Performs a broadcasting.