org.objectweb.jac.aspects.user
Class UserWrapper
java.lang.Object
|
+--org.objectweb.jac.core.Wrapper
|
+--org.objectweb.jac.aspects.user.UserWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
- public class UserWrapper
- extends Wrapper
This wrapper is used by the user aspect to implement several
croscutting treatments.
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
UserWrapper
public UserWrapper(AspectComponent ac)
addClass
public void addClass(ClassItem cl)
setUser
protected void setUser(Object wrappee,
Object user)
- Set user attributes of an object.
- Parameters:
wrappee
- the object to initializeuser
- the user object
getUser
protected Object getUser()
setUserOnNew
public Object setUserOnNew(Interaction interaction)
- Set the user attribute of new objects
setUser
public Object setUser(Interaction interaction)
Set user attributes of parameters.
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