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

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

Introduction

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

Prototype

public static PointcutParser getPointcutParserSupportingAllPrimitivesAndUsingContextClassloaderForResolution() 

Source Link

Document

Returns a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions:
  • The if, cflow, and cflowbelow pointcut designators are not supported
  • Pointcut expressions must be self-contained :- they cannot contain references to other named pointcuts
  • The pointcut expression must be anonymous with no formals allowed.

    Usage

    From source file:org.anyframe.iam.admin.candidatesecuredresources.service.impl.CandidateSecuredResourcesServiceImpl.java

    License:Apache License

    public CandidateSecuredResourcesServiceImpl(CandidateSecuredResourcesDao candidateSecuredResourcesDao) {
        super(candidateSecuredResourcesDao);
        this.candidateSecuredResourcesDao = candidateSecuredResourcesDao;
        parser = PointcutParser.getPointcutParserSupportingAllPrimitivesAndUsingContextClassloaderForResolution();
    }
    

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

    License:Apache License

    /**
     * Set the AspectJ type pattern to match.
     * <p>Examples include:/*from w w w .  j  a v a  2 s.c  o m*/
     * <code class="code">
     * org.springframework.beans.*
     * </code>
     * This will match any class or interface in the given package.
     * <code class="code">
     * org.springframework.beans.ITestBean+
     * </code>
     * This will match the {@code ITestBean} interface and any class
     * that implements it.
     * <p>These conventions are established by AspectJ, not Spring AOP.
     * @param typePattern the type pattern that AspectJ weaver should parse
     * @throws IllegalArgumentException if the supplied {@code typePattern} is {@code null}
     * or is recognized as invalid
     */
    public void setTypePattern(String typePattern) {
        Assert.notNull(typePattern);
        this.typePattern = typePattern;
        this.aspectJTypePatternMatcher = PointcutParser
                .getPointcutParserSupportingAllPrimitivesAndUsingContextClassloaderForResolution()
                .parseTypePattern(replaceBooleanOperators(typePattern));
    }