I have the following method
@AutoHandling(slot = FunctionalArea.PRE_MAIN_MENU) @RequestMapping(method = RequestMethod.GET) public String navigation(ModelMap model) { logger.debug("navigation"); ... //First time to the Main Menu and ID-Level is ID-1 or greater if (!callSession.getCallFlowData().isMainMenuPlayed() && callSession.getCallFlowData().getIdLevel() >= 1) { // Call Auto Handling logger.info("Call AutoHandling"); autoHandlingComponent.processAutoHandling(); } ... return forward(returnView); } Basically what I want to do, is have a pointcut on processAutoHandling() But in the @After, I need to use the slot() for @AutoHandling
I tried this, but it does not get called
@Pointcut("execution(* *.processAutoHandling())") public void processAutoHandleCall() { logger.debug("processAutoHandleCall"); } @Around("processAutoHandleCall() &&" + "@annotation(autoHandling) &&" + "target(bean) " ) public Object processAutoHandlingCall(ProceedingJoinPoint jp, AutoHandling autoHandling, Object bean) throws Throwable { ...