patterntesting.check.ct
Aspect AbstractStaticAspect

java.lang.Object
  extended by patterntesting.check.ct.AbstractStaticAspect
Direct Known Subclasses:
StaticAspect

public abstract aspect AbstractStaticAspect
extends java.lang.Object

 

Pointcut Detail

applicationCode()

Specify what is application code that should be subject to the pattern test.
If you want to allow the use of static variables in testcode exclude it in applicationCode. Ex: pointcut applicationCode(): within(patterntesting.samples.*)


criticalStaticVars()

 

Declare Detail

declare warning: "don't use non fin.."

  

If you are in a web context or/and a cluster static variables are normally not a good idea. Use better final statics or at least transient static variables.

Since:
17.11.2008

Declare Summary
declare warning: "don't use non fin.."

 

Pointcut Summary
public applicationCode()
            Specify what is application code that should be subject to the pattern test.

(package private) criticalStaticVars()
 

 

Constructor Summary
AbstractStaticAspect()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStaticAspect

public AbstractStaticAspect()