org.aspectj.lang.annotation.AfterReturning#org.aspectj.lang.annotation.Pointcut源码实例Demo

下面列出了org.aspectj.lang.annotation.AfterReturning#org.aspectj.lang.annotation.Pointcut 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

/**
 * Pointcut that matches all Spring beans in the application's main packages.
 */
@Pointcut("within(com.okta.developer.blog.repository..*)"+
    " || within(com.okta.developer.blog.service..*)"+
    " || within(com.okta.developer.blog.web.rest..*)")
public void applicationPackagePointcut() {
    // Method is empty as this is just a Pointcut, the implementations are in the advices.
}
 
private List<Method> getAdvisorMethods(Class<?> aspectClass) {
	final List<Method> methods = new ArrayList<>();
	ReflectionUtils.doWithMethods(aspectClass, method -> {
		// Exclude pointcuts
		if (AnnotationUtils.getAnnotation(method, Pointcut.class) == null) {
			methods.add(method);
		}
	}, ReflectionUtils.USER_DECLARED_METHODS);
	methods.sort(METHOD_COMPARATOR);
	return methods;
}
 
源代码3 项目: cubeai   文件: LoggingAspect.java
/**
 * Pointcut that matches all Spring beans in the application's main packages.
 */
@Pointcut("within(com.wyy.repository..*)"+
    " || within(com.wyy.service..*)"+
    " || within(com.wyy.web.rest..*)")
public void applicationPackagePointcut() {
    // Method is empty as this is just a Pointcut, the implementations are in the advices.
}
 
/**
 * Pointcut that matches all Spring beans in the application's main packages.
 */
@Pointcut("within(com.okta.developer.store.repository..*)"+
    " || within(com.okta.developer.store.service..*)"+
    " || within(com.okta.developer.store.web.rest..*)")
public void applicationPackagePointcut() {
    // Method is empty as this is just a Pointcut, the implementations are in the advices.
}
 
private List<Method> getAdvisorMethods(Class<?> aspectClass) {
	final List<Method> methods = new ArrayList<>();
	ReflectionUtils.doWithMethods(aspectClass, method -> {
		// Exclude pointcuts
		if (AnnotationUtils.getAnnotation(method, Pointcut.class) == null) {
			methods.add(method);
		}
	});
	methods.sort(METHOD_COMPARATOR);
	return methods;
}
 
/**
 * Pointcut that matches all repositories, services and Web REST endpoints.
 */
@Pointcut("within(@org.springframework.stereotype.Repository *)" +
    " || within(@org.springframework.stereotype.Service *)" +
    " || within(@org.springframework.web.bind.annotation.RestController *)")
public void springBeanPointcut() {
    // Method is empty as this is just a Pointcut, the implementations are in the advices.
}
 
源代码7 项目: spring-boot-demo   文件: DataSourceAop.java
@Pointcut("@annotation(com.easy.mybatis.multidatasource.annotation.Master) " +
        "|| execution(* com.easy.mybatis.multidatasource.service..*.insert*(..)) " +
        "|| execution(* com.easy.mybatis.multidatasource.service..*.add*(..)) " +
        "|| execution(* com.easy.mybatis.multidatasource.service..*.update*(..)) " +
        "|| execution(* com.easy.mybatis.multidatasource.service..*.edit*(..)) " +
        "|| execution(* com.easy.mybatis.multidatasource.service..*.delete*(..)) " +
        "|| execution(* com.easy.mybatis.multidatasource.service..*.remove*(..))")
public void writePointcut() {

}
 
源代码8 项目: cubeai   文件: LoggingAspect.java
/**
 * Pointcut that matches all repositories, services and Web REST endpoints.
 */
@Pointcut("within(@org.springframework.stereotype.Repository *)" +
    " || within(@org.springframework.stereotype.Service *)" +
    " || within(@org.springframework.web.bind.annotation.RestController *)")
public void springBeanPointcut() {
    // Method is empty as this is just a Pointcut, the implementations are in the advices.
}
 
源代码9 项目: cubeai   文件: LoggingAspect.java
/**
 * Pointcut that matches all repositories, services and Web REST endpoints.
 */
@Pointcut("within(@org.springframework.stereotype.Repository *)" +
    " || within(@org.springframework.stereotype.Service *)" +
    " || within(@org.springframework.web.bind.annotation.RestController *)")
public void springBeanPointcut() {
    // Method is empty as this is just a Pointcut, the implementations are in the advices.
}
 
@Pointcut(value="args(a)", argNames="a")
public void setAge(int a) {}
 
源代码11 项目: kitty   文件: DaoAspect.java
@Pointcut("execution(* com.louis.kitty.*.dao.*.update*(..))")
public void daoUpdate() {
}
 
源代码12 项目: supplierShop   文件: DataScopeAspect.java
@Pointcut("@annotation(com.ruoyi.common.annotation.DataScope)")
public void dataScopePointCut()
{
}
 
源代码13 项目: admin-plus   文件: TryAgainAspect.java
@Pointcut("@annotation(IsTryAgain)")
public void retryOnOptFailure() {
	// pointcut mark
}
 
源代码14 项目: jeecg-boot-with-activiti   文件: DictAspect.java
@Pointcut("execution(public * org.jeecg.modules..*.*Controller.*(..))")
public void excudeService() {
}
 
源代码15 项目: codeway_service   文件: OptLogAspect.java
/**
 * 切入点
 * 排除login方法
 */
//@Pointcut("execution (* com.codeway.*.controller..*.*(..)) && !execution(* com.codeway.*.controller.UserController.login(..))  && !execution(* com.codeway.*.controller.UserController.logout(..))")
@Pointcut(value="@annotation(com.codeway.annotation.OptLog)")
public void controllerAspect() {
}
 
源代码16 项目: we-cmdb   文件: OperationLogAspect.java
@Pointcut("@annotation(com.webank.cmdb.config.log.OperationLogPointcut)")
public void operationLogPointcut() {
}
 
源代码17 项目: Qualitis   文件: DaoAspect.java
@Pointcut("execution(public * com.webank.wedatasphere.qualitis.project.dao.ProjectDao.*(..))")
public void projectAspect(){
}
 
源代码18 项目: mall-swarm   文件: BindingResultAspect.java
@Pointcut("execution(public * com.macro.mall.controller.*.*(..))")
public void BindingResult() {
}
 
源代码19 项目: Qualitis   文件: DaoAspect.java
@Pointcut("execution(public * com.webank.wedatasphere.qualitis.rule.dao.repository.TemplateStatisticsInputMetaRepository.findById(..))")
public void templateStatisticsInputMetaAspect(){
}
 
源代码20 项目: pepper-metrics   文件: CustomProfilerAspect.java
@Pointcut("@annotation(com.pepper.metrics.integration.custom.Profile)")
public void pointcut(){}
 
源代码21 项目: Qualitis   文件: DaoAspect.java
@Pointcut("execution(public * com.webank.wedatasphere.qualitis.rule.dao.impl.RuleDaoImpl.*(..))")
public void ruleAspect(){
}
 
源代码22 项目: code   文件: AdviceAspectConfig.java
@Pointcut("execution(String cn.lastwhisper..*.*(..)) && within(cn.lastwhisper..*)")
public void matchReturn() {
}
 
源代码23 项目: teaching   文件: LogRecordAspect.java
@Pointcut("execution(public * org.jeecg.modules.*.*.*Controller.*(..))")
public void excudeService() {
}
 
源代码24 项目: yshopmall   文件: LogAspect.java
/**
 * 配置切入点
 */
@Pointcut("@annotation(co.yixiang.logging.aop.log.Log)")
public void logPointcut() {
    // 该方法无方法体,主要为了让同类中其他方法使用此切入点
}
 
源代码25 项目: yue-library   文件: HttpAspect.java
@Pointcut(ServletUtils.POINTCUT)
public void pointcut() {}
 
源代码26 项目: Project   文件: Audience.java
@Pointcut("execution(** com.lzc.aop.Performance.perform(..))")
public void watch() {}
 
源代码27 项目: HIS   文件: BindingResultAspect.java
@Pointcut("execution(public * com.neu.his.api.controller.*.*(..))")
public void BindingResult() {
}
 
源代码28 项目: SENS   文件: SystemLogAspect.java
/**
 * Controller层切点,注解方式
 */
//@Pointcut("execution(* *..controller..*Controller*.*(..))")
@Pointcut("@annotation(com.liuyanzhao.sens.config.annotation.SystemLog)")
public void controllerAspect() {

}
 
源代码29 项目: verifydata   文件: ValidationAspect.java
@Pointcut("@annotation(happy.validation.Validation)")
public void validation() {
}
 
源代码30 项目: BigDataPlatform   文件: BindingResultAspect.java
@Pointcut("execution(public * com.platform.controller.*.*(..))")
public void BindingResult() {
}