Class BaseAop

java.lang.Object
net.mingsoft.basic.aop.BaseAop
Direct Known Subclasses:
BaseLogAop, FileVerifyAop, ManagerPasswordAop, SaveOrUpdateAop

public abstract class BaseAop extends Object
切面基础
Version:
版本号:100-000-000
创建日期:2012-03-15
历史修订:
Author:
ms dev group
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final <T extends Annotation>
    T
    getAnnotation(org.aspectj.lang.JoinPoint jp, Class<T> an)
    是否存在注解,如果存在就获取
    protected final Object
    getJsonParam(org.aspectj.lang.JoinPoint jp)
    获取aop请求中所有请求参数
    protected final <T> T
    getType(org.aspectj.lang.JoinPoint jp, Class<T> clazz)
    获取切面中的class 类
    protected final <T> T
    getType(org.aspectj.lang.JoinPoint jp, Class<T> clazz, boolean hasParent)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      protected final org.slf4j.Logger LOG
  • Constructor Details

    • BaseAop

      public BaseAop()
  • Method Details

    • getType

      protected final <T> T getType(org.aspectj.lang.JoinPoint jp, Class<T> clazz)
      获取切面中的class 类
      Parameters:
      jp - 拦截对象
      clazz - class 类名
      Returns:
      类存在则返回类否则为null
    • getType

      protected final <T> T getType(org.aspectj.lang.JoinPoint jp, Class<T> clazz, boolean hasParent)
    • getJsonParam

      protected final Object getJsonParam(org.aspectj.lang.JoinPoint jp)
      获取aop请求中所有请求参数
      Parameters:
      jp -
      Returns:
    • getAnnotation

      protected final <T extends Annotation> T getAnnotation(org.aspectj.lang.JoinPoint jp, Class<T> an)
      是否存在注解,如果存在就获取