com.soento.core.acpects.LogAspect Maven / Gradle / Ivy
package com.soento.core.acpects;
import com.soento.core.support.AbstractLogAspect;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
/**
* @author soento
*/
@Aspect
@Component
public class LogAspect extends AbstractLogAspect {
@Pointcut("@annotation(com.soento.core.annotation.Log)")
public void pointcut() {
}
@Around("pointcut()")
public Object around(ProceedingJoinPoint joinPoint) throws Throwable {
return logAround(joinPoint);
}
}