org.objectweb.jac.aspects.distribution
Class DeploymentWrapper
java.lang.Object
|
+--org.objectweb.jac.core.Wrapper
|
+--org.objectweb.jac.aspects.distribution.DeploymentWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
- public class DeploymentWrapper
- extends Wrapper
This wrapper wraps constructors in order to deploy the objects on
remote host(s) after their initialization.
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
DeploymentWrapper
public DeploymentWrapper(AspectComponent ac,
String hostExpr,
Boolean state)
- The constructor.
- Parameters:
ac
- the aspect component that owns this wrapperhostExpr
- a regular expression that gives the host where
the wrapped object should be deployedstate
- a flag that tells if the state of the deployed
object should be copied on the remote host(s) or not
invoke
public Object invoke(MethodInvocation invocation)
throws Throwable
- Specified by:
invoke
in interface MethodInterceptor
- Overrides:
invoke
in class Wrapper
Throwable
construct
public Object construct(ConstructorInvocation invocation)
throws Throwable
- Specified by:
construct
in interface ConstructorInterceptor
- Overrides:
construct
in class Wrapper
Throwable
deploy
public Object deploy(Interaction i)
- Actually performs the deployment on a constructor
interaction.