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 6607489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:30:32+00:00 2026-05-25T19:30:32+00:00

Is it possible to intercept the execution of a method that is annotated with

  • 0

Is it possible to intercept the execution of a method that is annotated with a custom annotation without using any AOP framework such as AspectJ, Spring AOP, Guice, etc… I’m curious to find out if any of the default java apis can be used for this purpose (such as Reflection).

Thanks.

  • 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-05-25T19:30:32+00:00Added an answer on May 25, 2026 at 7:30 pm

    You can use reflection to invoke methods, but you can’t use it to intercept method invocations. Likewise, you can create Proxies with dynamic invocation handlers with the Proxy class, but you can’t intercept existing code that doesn’t target a proxy.

    So the answer is no.

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

Sidebar

Related Questions

Is possible to intercept 404 error without using web server (browsing html file in
Is it possible to intercept every request made from a page using javascript? i.e.
I want to create a pointcut that matches any method in my Web controller
Is it possible to develop a plug-in for Internet Explorer that can replace the
Possible Duplicate: how to disable javascript errors on “twebbrowser” ? I'm using the TWebBrowser
I know that is possible to run a simple(f.e. HelloWorld) java programms with dalvikvm
I'm designing a library that will be used to intercept and process incoming messages
I'm using ANTLR3 with the C runtime. I'd like to do some custom error
Is it possible in Windows to intercept the command switches passed from one applicaiton
Trying to figure out how to Proxy my beans with AOP advices in annotated

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.