Announcement Announcement Module
Collapse
No announcement yet.
Configuring singleton aspectj aspects: the timing issue? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configuring singleton aspectj aspects: the timing issue?

    This section here discusses how to configure aspectj aspects in a Spring context:
    http://static.springframework.org/sp...p-aj-configure

    For a singleton aspect, is it important that the aspect bean definition is processed before any of its intended join points gets advised?

  • #2
    Generally speaking, yes

    An aspect instance must be configured before execution of an advice in it (consequently, execution of an advised join point) that uses an injected dependency. Thus, if an aspect contains multiple advice, each with a different set of advised join points, then the aspect need to be configured only before the execution of an advice that uses an injected dependency.

    -Ramnivas

    Comment

    Working...
    X