estoy usando aspectj para interceptar los métodos que están anotados con @Profile(description="something")
pointcut aspectj con la anotación de los parámetros
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Profile {
public String description() default "";
}
@Around("com.merc.aop.ctw.aspect.PointcutDefinitions.logAnnotatedMethods(profile)")
public Object profile(ProceedingJoinPoint pjp, Profile profile) throws Throwable {
....
}
@Pointcut("@annotation(com.merc.annotations.Profile)")
protected void logAnnotatedMethods(Profile profile) {
}
pero me da el siguiente error msg mientras compileing usando AJC
formal unbound in pointcut
Hola, mi requisito es el mismo que el tuyo. Tengo una duda de lo que es 'com.merc.aop.ctw.aspect.PointcutDefinitions.logAnnotatedMethods'. Noté que logAnotatedMethods que ha creado pero no obtengo lo que es com.merc.aop.ctw.aspect.PointcutDefinitions? Por favor guíame. – James