मैं AspectJ उपयोग कर रहा हूँ तरीकों कि @Profile(description="something")
AspectJ pointcut पैरामीटर
@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) {
}
से एनोटेट रोकना लेकिन मैं निम्न त्रुटि संदेश मिलता है जबकि एजेसी
formal unbound in pointcut
हाय, मेरी आवश्यकता आपके जैसा ही है। मुझे एक संदेह है कि 'com.merc.aop.ctw.aspect.PointcutDefinitions.logAnnotatedMethods' क्या है। मैंने देखा है कि आपके द्वारा बनाए गए लॉगअनोटेड मोड्स हैं लेकिन मुझे com.merc.aop.ctw.aspect.PointcutDefinitions क्या नहीं मिल रहा है? कृपया मेरा मार्ग दर्शन कीजिए। – James