Open GoogleCodeExporter opened 9 years ago
Hrmm I don't see how to edit this. Close the issue, i was misunderstanding what
the problem was. Thought it was because i was using injection in my inner class
but i was trying to inject my inner class (so I could use @Transactional). I'm
not sure if that is supported by other injection frameworks or not.
Original comment by FireW...@gmail.com
on 17 May 2013 at 7:36
Closing as requested.
PS. I think Spring might support injection of non-static inner classes, by
relying on the fact that the inner class has an implicit constructor that
accepts a reference to the outer instance. However, you can only create the
inner instance inside the context of an outer instance (ie. when configuring
with nested XML) and there are gotchas:
http://stackoverflow.com/questions/15783854/how-to-define-a-bean-for-an-non-stat
ic-inner-class-in-spring-avoiding-circula
Original comment by mccu...@gmail.com
on 17 May 2013 at 8:31
Original issue reported on code.google.com by
FireW...@gmail.com
on 17 May 2013 at 6:21