Results 1 to 2 of 2

Thread: Pointcut expression??

  1. #1
    Join Date
    Jan 2008
    Location
    South of Germany
    Posts
    10

    Question Pointcut expression??

    @Pointcut("execution(* com.company.software.module.detail.servicelayer.*.*(..))")

    is the path to a specific package I want to advise.

    How can I optimize module.detail to get a more common pointcut that advises all calls in packages who are targeted to the service layer?

    thx

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    Code:
    @Pointcut("execution(* com.company.software..servicelayer.*.*(..))")
    something like this should do the trick.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •