Results 1 to 6 of 6

Thread: Why is there Interception Advisor in your Design?

  1. #1
    Join Date
    Aug 2004
    Location
    India
    Posts
    16

    Default Why is there Interception Advisor in your Design?

    Hi Rod,
    What is the significant of the Interception Advisor in your design ?
    Aspect does contain the Advice and PointCut , so I can understand the PontCut Advisor in your design . About Introduction Advisor and the Interception I can find any sort of Mapping .
    Vicky

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default IntroductionAdvisor

    Does your question relate to IntroductionAdvisor? That is used for "introductions"--causing a proxied object to implement one or more additional interfaces. We need a separate Advisor for that as an introduction doesn't need a full pointcut--no Method matching is required, only class filtering.

    Please see the AOP Chapter in the Reference Manual.

  3. #3
    Join Date
    Aug 2004
    Location
    India
    Posts
    16

    Default Problem at http://opensource.objectsbydesign.com/spring/inde

    Actually I was trying to figure the design from the class diagram at the http://opensource.objectsbydesign.com/spring/index.html .If you view the aop block there you will find the Advisor with three types as
    1) PointcutAdvisor
    2) IntroductionAdvisor
    3) InterceptionAdvisor
    My question was pertaining the need of the third type . From the latest source code it seems there is no InterceptionAdvisor .
    Can you clear these discrepencies ?
    I have spend a lot of time in analysing the class diagram from objectsbydesign but it seems they have not updated the class diagram for the latest spring .

  4. #4
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default Class diagram

    Indeed: that interface was removed some time ago, but unfortunately their UML diagrams are out of date. We should ask them to update or remove them.

  5. #5
    Join Date
    Aug 2004
    Location
    India
    Posts
    16

    Default Re: IntroductionAdvisor

    Quote Originally Posted by Rod Johnson
    Does your question relate to IntroductionAdvisor? That is used for "introductions"--causing a proxied object to implement one or more additional interfaces. We need a separate Advisor for that as an introduction doesn't need a full pointcut--no Method matching is required, only class filtering.

    Please see the AOP Chapter in the Reference Manual.
    Rod I have not been able to understand the Advisor types , what I can understand is that
    1) The Spring Advisor does contain the Advice .
    2) There are two types which are provided by you the Introduction Advisor and the PointCutAdvisor .

    And the proxy which is returned from the ProxyFactoryBean will get the advisors/intereceptor from the chain . The wrap from DefaultAdvisorAdapterRegistry does wrap the interceptor as the DefaultPointCutAdvisor .
    I can understand the flow , still need to undersand it in depth .

    As the Advisor are the Aspects in the Spring . The Aspect does contain the pointcut and the Advise , so why the Advisor does not contain the Pointcut as the Attribute ?
    You have included the PointcutAdvisor which does have both the Advice and the pointcut .
    Introduction Advisor does not match the definition of the Aspect as it does not contain the Pointcut , although it does contain the types which are present in the pointcut ?
    Can you explain the design in a detail ? I have referred your all the books also , but could not understand the Advisor design ?

    Regards
    Vicky

  6. #6
    Join Date
    Nov 2004
    Posts
    1

    Default Changes

    I see in the docs as well as the above referenced class diagrams that the InterceptionAdvisor still exists. Any one know when either of these resources might be changed to reflect the current api?

Similar Threads

  1. design strategy question
    By cyber in forum Container
    Replies: 1
    Last Post: Aug 31st, 2005, 05:54 AM
  2. Replies: 1
    Last Post: May 29th, 2005, 06:03 AM
  3. Bean design question
    By egervari in forum Container
    Replies: 1
    Last Post: May 12th, 2005, 12:43 PM
  4. Replies: 0
    Last Post: Oct 14th, 2004, 03:16 PM
  5. Replies: 6
    Last Post: Oct 8th, 2004, 02:21 PM

Posting Permissions

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