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.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
/**
* @author soento
*/
@Aspect
@Component
public class LogAspect extends AbstractLogAspect {
private static final Logger log = LoggerFactory.getLogger(LogAspect.class);
@Pointcut("@annotation(com.soento.core.annotation.Log)")
public void pointcut() {
}
@Around("pointcut()")
public Object around(ProceedingJoinPoint joinPoint) throws Throwable {
return logAround(joinPoint);
}
}