I have been creating a Annotation based aspect definition thus create @LogPerformance
and put it on createuser()
method. In that case it does not call the aspect method.But when I have moved @LogPerformance from createuser()
to create() method aspect method is invoked.
Why @LogPerformance
does not effect on createuser method.
@Component
@Path(SystemConstants.REST_REGISTER)
public class RegisterServices {
@PUT
@Path(SystemConstants.REST_REGISTER_CREATE)
@Consumes(MediaType.APPLICATION_JSON)
@Produces({MediaType.APPLICATION_JSON})
public Response create(@Context HttpServletRequest requestContex) String requestIp, String param) {
createUser(...);
}
@LogPerformance
public ClientRespWsBean createUser(ClientReqWsBean request) throws XMPPException
{
}
}