Announcement Announcement Module
Collapse
No announcement yet.
Introductions - how to access decorated bean from introduced methods Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Introductions - how to access decorated bean from introduced methods

    I have seen (and reproduced) the examples of the lockable mixin that retains state within the default implementation class. This demonstrates how to add a "self-enclosed" implementation i.e. the mixin methods access the mixin properties - but I do not see how the mixin methods can access the properties of the "decorated" object.

    I tried to wrap "around" advice on the mixin interface but this does not work - I am guessing because the new instance creation of the default implementation class is created is not going through the auto-proxy (??)

    Am I missing some fundamental concept? Without this ability the mixin approach seems very limited.

    I am using Spring AOP 2 annotation syntax.
Working...
X