java - spring bean properties with singleton -
need clarification on spring singleton .i have 3 objects ,these readonly never changed values.
i planning create these objects singleton bean properties.
my question: when spring creates these objects,everytime create new object when bean calls or once in life time call , create objects?. possible threading issues if any?
it depends on spring do. spring has inversion of control container manages instances of objects. depending on scope give objects, make them singletons or not.
more info:
http://static.springsource.org/spring/docs/3.0.0.m3/reference/html/ch04s04.html
Comments
Post a Comment