Announcement Announcement Module
No announcement yet.
Interceptor accessing custom Endpoint @annotation Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Interceptor accessing custom Endpoint @annotation

    I have an annotated endpoint with a method with three annotations @PayloadRoot, @Transaction and @MyCustomAnnotation using standard wiring.

    Question: Will I be able to interrogate the @MyCustomAnnotation in the handleRequest method of an EndpointInterceptor by examining the endpoint argument passed to the handleRequest method?

    If my understanding of Spring is correct a proxy will be created for the end-point implying that the interceptor will receive a proxy of the endpoint bean when it is invoked. If I want to interrogate @MyCustomAnnotation do I need something along the lines of what is mentioned at the end of post or am I missing something obvious?