Interceptors on base / abstract class #44131
Unanswered
UbiquitousBear
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've an interceptor
@PartitionAwareEntityReference
which is defined on an abstract class:public abstract class AbstractEntity
, which has a method:public EntityReference getEntityReference()
:The EntityReference needs additional enriching sometimes, so I'm using an interceptor to add data:
I've noted that the interceptor annotation cannot be added to the method
getEntityReference
, however can at class level. Currently as implemented, the enrichment isn't happening. Is this implementation valid?Beta Was this translation helpful? Give feedback.
All reactions