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
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
ADDER
public static final int ADDER
- See Also:
- Constant Field Values
REMOVER
public static final int REMOVER
- See Also:
- Constant Field Values
RepositoryWrapper
public RepositoryWrapper(AspectComponent ac,
String repositoryName,
CollectionItem collection,
FieldItem field,
int type)
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
- Throws:
Throwable