123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package cn.nosum.framework.aop.aspect;
- import java.lang.reflect.Method;
- public class Advice {
- // 切面代理实例,比如 LogAspect
- private Object aspect;
- // 切面方法
- private Method adviceMethod;
- // 异常名称,比如 Exception
- private String throwName;
- public Advice(Object aspect, Method adviceMethod) {
- this.aspect = aspect;
- this.adviceMethod = adviceMethod;
- }
- public Object getAspect() {
- return aspect;
- }
- public void setAspect(Object aspect) {
- this.aspect = aspect;
- }
- public Method getAdviceMethod() {
- return adviceMethod;
- }
- public void setAdviceMethod(Method adviceMethod) {
- this.adviceMethod = adviceMethod;
- }
- public String getThrowName() {
- return throwName;
- }
- public void setThrowName(String throwName) {
- this.throwName = throwName;
- }
- }
|