Announcement Announcement Module
Collapse
No announcement yet.
Impossible to auto proxy an object created by new operator Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Impossible to auto proxy an object created by new operator

    I am reading the book "Professional Java Development with the Spring Framework", on page 147, it says "It's not possible to automatically proxy an object created using the new operator using Spring AOP. if you need to do this - for example, to advise large numbers of fine-grained objects- consider using AspectJ or AspectWekz as alternative to Spring's own AOP framework".

    Aren't most objects in Spring created using the new operator (other than the one created by FactoryBeans)? I'm confused here...

  • #2
    I believe he is referring to the fact that objects *your code* creates using new cannot be wrapped because Spring doesn't know about them.

    Maybe?

    Comment

    Working...
    X