@DeclareParents annotation in an introduction to aspect-oriented programming

I am doing Spring Aspect Oriented Programming with annotations in Java. I have Aspect LogAOP:

@Aspect
public class LogAOP {

  @DeclareParents(value="beans.service.*+",     //Line 1
                  defaultImpl= EventImpl.class)
  public static Event mixin;

  @Before("com.beans.business.businessService() &&" +
          "this(abc)")
  public void usage(Event abc) {
    abc.increment();
  }

}

I cannot understand the meaning of the β€œ+” character in line 1 in the value attribute of the @DeclareParents annotation. Beacuse, even if I delete this + character, the program works fine. I also searched in the official Spring AOP documentation ( http://docs.spring.io/spring/docs/2.5.4/reference/aop.html ), nothing is mentioned there.

+4
source share
1 answer

+ . , pointcut :

@DeclareParents(value="beans.service.*+",     //Line 1
              defaultImpl= EventImpl.class)
public static Event mixin;

... , beans.service, . , beans.service. , . beans.service . , .

+4

Source: https://habr.com/ru/post/1527197/


All Articles