org.objectweb.jac.aspects.integrity
Class RoleWrapper
java.lang.Object
|
+--org.objectweb.jac.core.Wrapper
|
+--org.objectweb.jac.aspects.integrity.RoleWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
- public class RoleWrapper
- extends Wrapper
Wrapper for updating opposite roles.
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
RoleWrapper
public RoleWrapper(AspectComponent ac)
updateOppositeRole
public Object updateOppositeRole(Interaction interaction)
- Tells the integrity aspect to update the opposite roles of the
declared associations.
doUpdate
protected void doUpdate(Interaction interaction)
initAutoCreatedObject
public Object initAutoCreatedObject(Interaction interaction)
- Initializes the opposite role of an object auto created on an
adder or reference setter if there's an attribute
GuiAC.AUTOCREATE_REASON in the context, whose value is an
Interaction.
disableRoleUpdate
public static void disableRoleUpdate(FieldItem role)
- Disable opposite role updating
- Parameters:
role
- role for which opposite role updating must be disabled
enableRoleUpdate
public static void enableRoleUpdate(FieldItem role)
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