org.objectweb.jac.aspects.integrity
Class ConstraintWrapper

java.lang.Object
  extended byorg.objectweb.jac.core.Wrapper
      extended byorg.objectweb.jac.aspects.integrity.ConstraintWrapper
All Implemented Interfaces:
Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable

public class ConstraintWrapper
extends Wrapper

This wrapper provides a constraints scheme to limit fields modifications.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jac.core.Wrapper
ac, cr
 
Constructor Summary
ConstraintWrapper(AspectComponent ac)
           
 
Method Summary
 Object invoke(MethodInvocation invocation)
           
 Object testConditions(Interaction interaction)
          This wrapping method checks if pre and post conditions are validated for modified fields.
 
Methods inherited from class org.objectweb.jac.core.Wrapper
attr, attrdef, construct, 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

ConstraintWrapper

public ConstraintWrapper(AspectComponent ac)
Method Detail

testConditions

public Object testConditions(Interaction interaction)
                      throws Exception
This wrapping method checks if pre and post conditions are validated for modified fields.

Throws:
Exception

invoke

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