org.objectweb.jac.aspects.integrity
Class RepositoryWrapper

java.lang.Object
  |
  +--org.objectweb.jac.core.Wrapper
        |
        +--org.objectweb.jac.aspects.integrity.RepositoryWrapper
All Implemented Interfaces:
Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable

public class RepositoryWrapper
extends Wrapper

This wrapper manages repository collections.

See Also:
Serialized Form

Field Summary
static int ADDER
           
static int REMOVER
           
 
Fields inherited from class org.objectweb.jac.core.Wrapper
ac, cr
 
Constructor Summary
RepositoryWrapper(AspectComponent ac, String repositoryName, CollectionItem collection, FieldItem field, int type)
           
 
Method Summary
 Object addToRepository(Interaction interaction)
          Adds the object added to field to the repository
 Object doAddToRepository(Interaction interaction)
          Disables addToRepository
 Object invoke(MethodInvocation invocation)
           
 Object removeFromRepository(Interaction interaction)
           
 
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
 

Field Detail

ADDER

public static final int ADDER
See Also:
Constant Field Values

REMOVER

public static final int REMOVER
See Also:
Constant Field Values
Constructor Detail

RepositoryWrapper

public RepositoryWrapper(AspectComponent ac,
                         String repositoryName,
                         CollectionItem collection,
                         FieldItem field,
                         int type)
Method Detail

addToRepository

public Object addToRepository(Interaction interaction)
Adds the object added to field to the repository


doAddToRepository

public Object doAddToRepository(Interaction interaction)
Disables addToRepository


removeFromRepository

public Object removeFromRepository(Interaction interaction)

invoke

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