Top "Aspect" questions

An aspect is a module implemented in an Aspect-Oriented Programming language that contains code for a cross-cutting concern, like logging or security.

Getting UndeclaredThrowableException instead of my own exception

I have the following code public Object handlePermission(ProceedingJoinPoint joinPoint, RequirePermission permission) throws AccessException, Throwable { System.out.println("Permission = " + permission.…

java aop aspect
How to profile methods in Scala?

What is a standard way of profiling Scala method calls? What I need are hooks around a method, using which …

function scala profiling aspect
How to specify single pointcut for multiple packages

I am using Aspect for logging activities in my spring mvc based application. I am using @controller annotations to define …

spring aop spring-aop pointcut aspect
BeanNotOfRequiredTypeException but was actually of type $Proxy

I need help with a problem with Spring and proxy. org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'fooAPIService' must be …

java spring spring-aop cglib aspect
Spring Boot Logger Aspects

I'm having problems getting my logging aspect to log information when methods from classes of a particular package are accessed. …

java spring logging aop aspect