Results 1 to 2 of 2

Thread: Configuring singleton aspectj aspects: the timing issue?

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Herndon, VA, US
    Posts
    648

    Default 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?
    --Jing Xue

  2. #2
    Join Date
    Jun 2006
    Location
    SF Bay Area, California
    Posts
    524

    Default 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •