weaver-hrm-organization/src/com/engine/organization/util/LogAspect.java

41 lines
820 B
Java
Raw Normal View History

2022-04-28 09:46:52 +08:00
package com.engine.organization.util;
import com.engine.organization.annotation.Log;
import java.lang.reflect.Method;
/**
* @Author weaver_cl
* @Description: TODO
* @Date 2022/4/27
* @Version V1.0
**/
public class LogAspect<T> {
Class<T> clazz;
Method method;
public LogAspect(Class<T> clazz,Method method) {
this.clazz = clazz;
this.method = method;
}
public void start() {
try {
boolean f = method.isAnnotationPresent(Log.class);
if (f) {
Log annotation = method.getAnnotation(Log.class);
String value = annotation.value();
String description = annotation.description();
}
Method[] methods = clazz.getMethods();
} catch (Exception e) {
}
}
}