Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8778967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:39:37+00:00 2026-06-13T19:39:37+00:00

I am trying to apply pointcut to an implemented method in childclass but the

  • 0

I am trying to apply pointcut to an implemented method in childclass but the AspectMethod is not being invoked around this pointcut.
Following is my configuration and code:

public abstract class ParentClass {
  protected abstract void buildResponse(QueryResponse qryResp,ContentSearchServiceResponseImpl cssResp);
}


public class ChildClass extends ParentClass {
@override    
public void buildResponse(QueryResponse qryResp,ContentSearchServiceResponseImpl  ssResp){
//doSomething
}

Pointcuts:

<aop:pointcut id="pointcutId"
            expression="execution(public * ParentClass.buildResponse(..))" />

OR

<aop:pointcut id="pointcutId"
            expression="execution(protected * ParentClass.buildResponse(..))" />

OR

<aop:pointcut id="pointcutId"
            expression="execution(public * ParentClass+.buildResponse(..))" />

For any of the configurations of pointcuts above Aspect is not being created.I have tried almost everything.If anyone has some idea on this…I can not use Child Class’s name directly because in my case multiple child classes are implementing this abstract method

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:39:38+00:00Added an answer on June 13, 2026 at 7:39 pm

    Try

    execution(public * buildResponse(..)) && within(ParentClass+)
    

    or

    execution(public * buildResponse(..)) && target(ParentClass+)
    

    Also keep in mind that internal calls inside a class (one method calling another method in the same class) are not subject to any advices if you are using the “standard” spring proxy-based AOP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to apply a 301 redirect to this url /Qx%40w%2C6M42VAwp3%40Rb%7B~cC4ure%60QWI9 but it's not liking
I am trying to apply smoothing filter to image . But I get this
Trying to apply regex for not allowing a string with double underscores [a-z][a-z0-9_-]+[^__] but
I'm trying to apply this tutorial to my project, but I don't get it
im trying to apply a method in this method from a view controller in
im trying to apply this kind of notification with my website. but was wondering
I am trying to apply this sticky footer pattern to my template: http://ryanfait.com/sticky-footer/ But
I'm trying to apply the simplified algorithm in Prolog, but I'm not a Prolog
im trying to apply this JSON code to my Google Map: [ { stylers:
I'm trying to apply a tooltip to a toolstripbutton but it keeps giving me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.