net.sf.oval.guard
Class GuardAspect2

java.lang.Object
  extended by net.sf.oval.guard.ApiUsageAuditor2
      extended by 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

Field Summary
 
Fields inherited from class net.sf.oval.guard.ApiUsageAuditor2
RULE1, RULE2, RULE3, RULE4, RULE5, RULE6, RULE7
 
Constructor Summary
GuardAspect2()
          Constructor instantiating a new Guard object.
GuardAspect2(Guard guard)
          Constructor using the given Guard object
 
Method Summary
 Object allConstructors(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
           
 Object allMethods(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
           
 Guard getGuard()
           
 void setGuard(Guard guard)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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–2015 The OVal Development Team. All rights reserved.