Results 1 to 4 of 4

Thread: when proxies using inheritance will be implemented

  1. #1
    Join Date
    Sep 2008
    Posts
    2

    Default when proxies using inheritance will be implemented

    Hi,Mark

    I have read this ----"In a future release we will implement proxies using inheritance,which will allow you to proxy classes without interfaces" in Spring.NET documention.

    And I want to know when it will be implemented. Is it impossible to expect this in the next release?

    Thanks for your answer.

  2. #2
    Join Date
    Jan 2006
    Location
    Cambridge, UK
    Posts
    1,340

    Default

    Hi,

    this is already in the framework for quite a while. Just set "ProxyTargetType='true'" on your AutoProxyCreator.

    Another option you might want to check out is the InheritanceBasedAopConfigurer.

    hope this helps,
    Erich

  3. #3
    Join Date
    Sep 2008
    Posts
    2

    Question methed by inherit not interface can be intercept or not?

    Thanks,Erich

    Still some questions. As far as I known all methods which can be intercepted must implement one or some interfaces.

    But in my project, half methods do not implement inferface but inherit basic class. How to intercept these methods in Spring.NET AOP.

    I want to know very much.

    Thanks for your answer!!

  4. #4
    Join Date
    Aug 2008
    Posts
    35

    Default

    Hi
    As Erich said:

    Just set "ProxyTargetType='true'" on your AutoProxyCreator.
    and then you have to remember to set all methods that have to be proxied as virtual.

    Piotr

Posting Permissions

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