1 package de.jos.game.aspect;
2
3 import org.aspectj.lang.annotation.Aspect;
4 import org.aspectj.lang.annotation.DeclareError;
5
6 @Aspect
7 public class ArchitectureAspect {
8
9 /*
10 * @Pointcut("call(* java.lang.System.out.*(..)) ") public void
11 * restrictedCall() {}
12 *
13 * @After("restrictedCall()") public void update() {
14 * System.out.println("+++++++++++++++++++++++++++++++++++errror++++++++++++++++++++"); }
15 */
16
17 // @ DeclareError("call(java.sql.Date.new(..))")
18 // static final String errorDate = "date util verwenden !";
19 //@ DeclareError("get(* System.out)")
20 static final String errorSystemOut = "System.out ist nicht erlaubt. Bitte durch log4j Logging ersetzen !";
21
22 //@ DeclareError("get(* System.err)")
23 static final String errorSystemErr = "System.err ist nicht erlaubt. Bitte durch log4j Logging ersetzen !";
24
25 }