Results 1 to 2 of 2

Thread: Impossible to auto proxy an object created by new operator

  1. #1
    Join Date
    May 2005
    Posts
    7

    Default 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. #2
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    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?

Similar Threads

  1. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  2. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  3. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM
  4. Other Hibernate DAO LazyInitializationExceptions
    By bernardsirius in forum Data
    Replies: 5
    Last Post: Feb 18th, 2005, 04:09 PM
  5. Replies: 9
    Last Post: Feb 8th, 2005, 09:25 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
  •