Java 类org.aspectj.lang.annotation.Pointcut 实例源码

项目:spring-io    文件:LoggingAspect.java   
/**
 * Pointcut that matches all repositories, services and Web REST endpoints.
 */
@Pointcut("(within(com.springio.store.repository..*) && @annotation(org.springframework.stereotype.Repository))"+
    " || (within(com.springio.store.service..*) && @annotation(org.springframework.stereotype.Service))"+
    " || (within(com.springio.store.web.rest..*) && @annotation(org.springframework.web.bind.annotation.RestController))")
public void loggingPointcut() {
    // Method is empty as this is just a Pointcut, the implementations are in the advices.
}
项目:jhipster-microservices-example    文件: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.
}
项目:logger-spring-boot    文件:LoggerInterceptor.java   
@Pointcut("execution(public * *(..))"
        + " && !execution(String *.toString())"
        + " && !execution(int *.hashCode())"
        + " && !execution(boolean *.canEqual(Object))"
        + " && !execution(boolean *.equals(Object))")
protected void publicMethod() {
}
项目:qualitoast    文件:LoggingAspect.java   
/**
 * Pointcut that matches all Spring beans in the application's main packages.
 */
@Pointcut("within(io.github.pascalgrimaud.qualitoast.repository..*)"+
    " || within(io.github.pascalgrimaud.qualitoast.service..*)"+
    " || within(io.github.pascalgrimaud.qualitoast.web.rest..*)")
public void applicationPackagePointcut() {
    // Method is empty as this is just a Pointcut, the implementations are in the advices.
}
项目:codemotion-2017-taller-de-jhipster    文件: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.
}
项目:lams    文件:ReflectiveAspectJAdvisorFactory.java   
private List<Method> getAdvisorMethods(Class<?> aspectClass) {
    final List<Method> methods = new LinkedList<Method>();
    ReflectionUtils.doWithMethods(aspectClass, new ReflectionUtils.MethodCallback() {
        @Override
        public void doWith(Method method) throws IllegalArgumentException {
            // Exclude pointcuts
            if (AnnotationUtils.getAnnotation(method, Pointcut.class) == null) {
                methods.add(method);
            }
        }
    });
    Collections.sort(methods, METHOD_COMPARATOR);
    return methods;
}
项目:lams    文件:AbstractAspectJAdvisorFactory.java   
/**
 * Find and return the first AspectJ annotation on the given method
 * (there <i>should</i> only be one anyway...)
 */
@SuppressWarnings("unchecked")
protected static AspectJAnnotation<?> findAspectJAnnotationOnMethod(Method method) {
    Class<?>[] classesToLookFor = new Class<?>[] {
            Before.class, Around.class, After.class, AfterReturning.class, AfterThrowing.class, Pointcut.class};
    for (Class<?> c : classesToLookFor) {
        AspectJAnnotation<?> foundAnnotation = findAnnotation(method, (Class<Annotation>) c);
        if (foundAnnotation != null) {
            return foundAnnotation;
        }
    }
    return null;
}
项目:qualitoast    文件: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.
}
项目:spring-io    文件:LoggingAspect.java   
/**
 * Pointcut that matches all repositories, services and Web REST endpoints.
 */
@Pointcut("(within(com.springio.store.repository..*) && @annotation(org.springframework.stereotype.Repository))"+
    " || (within(com.springio.store.service..*) && @annotation(org.springframework.stereotype.Service))"+
    " || (within(com.springio.store.web.rest..*) && @annotation(org.springframework.web.bind.annotation.RestController))")
public void loggingPointcut() {
    // Method is empty as this is just a Pointcut, the implementations are in the advices.
}
项目:stuffEngine    文件:AuditHandler.java   
@Pointcut("execution(* *.*(..))")
public void anyMethod() {
    //pointcut
}
项目:GitHub    文件:DbRealmAspect.java   
@Pointcut("execution(@com.app.annotation.aspect.DbRealm * *(..))")//方法切入点
public void methodAnnotated() {
}
项目:MI-S    文件:WebRequestLogAspect.java   
@Pointcut("execution(public * com.mi.module.*.controller..*.*(..))")
public void webLog(){}
项目:GitHub    文件:MemoryCacheAspect.java   
@Pointcut("execution(@com.app.annotation.aspect.MemoryCache * *(..))")//方法切入点
public void methodAnnotated() {
}
项目:GitHub    文件:SingleClickAspect.java   
@Pointcut("execution(@com.app.annotation.aspect.SingleClick * *(..))")//方法切入点
public void methodAnnotated() {
}
项目:GitHub    文件:CheckLoginAspect.java   
@Pointcut("execution(@com.app.annotation.aspect.CheckLogin * *(..))")//方法切入点
public void methodAnnotated() {
}
项目:strix    文件:TransactionalAspect.java   
/**
 * Matches any execution of a method
 */
@Pointcut("execution(* *(..))")
public void anyMethod() {
}
项目:SAF-AOP    文件:HookMethodAspect.java   
@Pointcut(POINTCUT_METHOD)
public void methodAnnotatedWithHookMethod() {
}
项目:GitHub    文件:TimeLogAspect.java   
@Pointcut("execution(@com.app.annotation.aspect.TimeLog *.new(..))")//构造器切入点
public void constructorAnnotated() {
}
项目:sjk    文件:ThrowableInterceptor.java   
@Pointcut("execution(public * com.ijinshan.*.web.*.*(..))")
private void errorPointCutMethod() {
}
项目:GitHub    文件:SingleClickAspect.java   
@Pointcut("execution(@com.app.annotation.aspect.SingleClick * *(..))")//方法切入点
public void methodAnnotated() {
}
项目:GitHub    文件:CheckLoginAspect.java   
@Pointcut("execution(@com.app.annotation.aspect.CheckLogin * *(..))")//方法切入点
public void methodAnnotated() {
}
项目:Learning-Spring-5.0    文件:MyLoggingAspect.java   
@Pointcut(value="execution(* com.packt.ch03.dao.BookDAO.addBook(com.packt.ch03.beans.Book))")
public void selectAdd(){}
项目:sjk    文件:AppHistory4IndexInterceptor.java   
@Pointcut("execution(public * com.ijinshan.sjk.service.impl.AppServiceImpl.update*(..))")
private void updateAppPointcut() {
}
项目:FragmentRigger    文件:ActivityInjection.java   
@Pointcut("execution(android.support.v4.app.FragmentActivity+.new()) && annotatedWithPuppet()")
public void construct() {
}
项目:java-spring-cloud    文件:TracedAsyncWebAspect.java   
@Pointcut("(anyRestControllerAnnotated() || anyControllerAnnotated()) && anyPublicMethodReturningCallable()")
private void anyControllerOrRestControllerWithPublicAsyncMethod() {
}
项目:Microservices-with-JHipster-and-Spring-Boot    文件:LoggingAspect.java   
/**
 * Pointcut that matches all repositories, services and Web REST endpoints.
 */
@Pointcut("within(org.jhipster.blog.repository..*) || within(org.jhipster.blog.service..*) || within(org.jhipster.blog.web.rest..*)")
public void loggingPointcut() {
    // Method is empty as this is just a Pointcut, the implementations are in the advices.
}
项目:SAF-AOP    文件:AsyncAspect.java   
@Pointcut("@within(com.safframework.aop.annotation.Async)||@annotation(com.safframework.aop.annotation.Async)")
public void onAsyncMethod() {
}
项目:strix    文件:TransactionalAspect.java   
/**
 * Matches any method, which is annotated with {@link Transactional}
 */
@Pointcut("@annotation(io.mcarle.strix.annotation.Transactional)")
public void transactionalAnnotated() {
}
项目:crash    文件:ExecuteOnUiThread.java   
@Pointcut("execution(@android.support.annotation.UiThread * *(..)) || methodInsideAnnotatedType()")
public void method() {
}
项目:iBase4J    文件:DataSourceAspect.java   
@Pointcut("execution(* org.ibase4j.provider..*.*(..))")
public void aspect() {
}
项目:stuffEngine    文件:AuditHandler.java   
@Pointcut("execution(* ru.technoserv.controller.EmployeeController.getDepartmentStuff(..))")
public void getStuff(){
    //pointcut
}
项目:crash    文件:ExecuteOnWorkerThread.java   
@Pointcut("execution(@android.support.annotation.WorkerThread * *(..)) || methodInsideAnnotatedType()")
public void method() {
}
项目:FragmentRigger    文件:ActivityInjection.java   
@Pointcut("execution(* android.support.v4.app.FragmentActivity+.onDestroy(..)) && annotatedWithPuppet()")
public void onDestroy() {
}
项目:QiuQiu    文件:MineMapperAspect.java   
/**
 * 切入点
 */
@Override
@Pointcut("execution(* org.eddy.dao.mapper..*(..))")
public void mapperCheckPoint() {

}
项目:readingList    文件:HttpAspect2.java   
@Pointcut("execution(public * com.peony.readinglist.controller.ReadingListController.*(..))")
public void log() {
}
项目:hentai    文件:LoggingAspect.java   
@Pointcut("target(org.springframework.data.repository.Repository)")
void allRepositories() {}
项目:short-url    文件:ControllerLogAspect.java   
@Pointcut("execution(* com.titizz.shorturl.web.controller.*Controller.*(..))" +
        "&& @annotation(org.springframework.web.bind.annotation.RequestMapping))")
public void requestRecord() {}
项目:Spring-5.0-Cookbook    文件:LoginProxyAspect.java   
@Pointcut("within(@org.springframework.stereotype.Controller *))") 
public void classPointcut() {}
项目:Spring-5.0-Cookbook    文件:LoginProxyAspect.java   
@Pointcut("execution(* org.packt.aop.transaction.controller.LoginController.login(..))") 
public void loginPointcut() {}