Example usage for org.aspectj.weaver.tools PointcutParser getPointcutParserSupportingSpecifiedPrimitivesAndUsingSpecifiedClassLoaderForResolution

List of usage examples for org.aspectj.weaver.tools PointcutParser getPointcutParserSupportingSpecifiedPrimitivesAndUsingSpecifiedClassLoaderForResolution

Introduction

In this page you can find the example usage for org.aspectj.weaver.tools PointcutParser getPointcutParserSupportingSpecifiedPrimitivesAndUsingSpecifiedClassLoaderForResolution.

Prototype

public static PointcutParser getPointcutParserSupportingSpecifiedPrimitivesAndUsingSpecifiedClassLoaderForResolution(
        Set<PointcutPrimitive> supportedPointcutKinds, ClassLoader classLoader) 

Source Link

Document

Returns a pointcut parser that can parse pointcut expressions built from a user-defined subset of AspectJ's supported pointcut primitives.

Usage

From source file:org.springframework.aop.aspectj.AspectJExpressionPointcut.java

License:Apache License

/**
 * Initialize the underlying AspectJ pointcut parser.
 *//*  ww  w .j  a v  a 2  s .c o m*/
private PointcutParser initializePointcutParser(ClassLoader cl) {
    PointcutParser parser = PointcutParser
            .getPointcutParserSupportingSpecifiedPrimitivesAndUsingSpecifiedClassLoaderForResolution(
                    SUPPORTED_PRIMITIVES, cl);
    parser.registerPointcutDesignatorHandler(new BeanNamePointcutDesignatorHandler());
    return parser;
}