Spring: How to assure that a class is only instantiated by spring and not by keyword new.

Posted by Michael Bavin on Stack Overflow See other posts from Stack Overflow or by Michael Bavin
Published on 2010-03-19T10:30:22Z Indexed on 2010/03/19 10:41 UTC
Read the original article Hit count: 192

Hi,

Is it possible to assure that only spring can instantiate a class, and not with the keyword new at compile time?

Thank you

© Stack Overflow or respective owner

Related posts about java

Related posts about spring