net.sf.oval.guard
Class GuardAspect2
java.lang.Object
net.sf.oval.guard.ApiUsageAuditor2
net.sf.oval.guard.GuardAspect2
public abstract class GuardAspect2
- extends ApiUsageAuditor2
This is an annotations based version of the GuardAspect aspect.
In contrast to GuardAspect no custom scopes are supported yet,
so only guarding based on the @Guarded annotation is possible right now.
To workaround an AspectJ bug use the -XnoInline weave option, in case you are getting errors like:
java.lang.VerifyError: (class: net/sf/oval/guard/GuardAspect2, method: ajc$inlineAccessMethod$net_sf_oval_guard_GuardAspect2$net_sf_oval_guard_Guard$guardMethodPost signature: (Lnet/sf/oval/guard/Guard;Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Ljava/lang/Object;)V) Illegal use of nonvirtual function call
- Author:
- Sebastian Thomschke
Constructor Summary |
GuardAspect2()
Constructor instantiating a new Guard object. |
GuardAspect2(Guard guard)
Constructor using the given Guard object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GuardAspect2
public GuardAspect2()
- Constructor instantiating a new Guard object.
GuardAspect2
public GuardAspect2(Guard guard)
- Constructor using the given Guard object
- Parameters:
guard
- the guard to use
allConstructors
public Object allConstructors(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
throws Throwable
- Throws:
Throwable
allMethods
public Object allMethods(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
throws Throwable
- Throws:
Throwable
getGuard
public Guard getGuard()
- Returns:
- the guard
setGuard
public final void setGuard(Guard guard)
Copyright © 2005-2013 The OVal Development Team. All Rights Reserved.