You might define an abstract bean and use bean inheritance. This means you'll have a bean definition that works as a template and you may have multiple beans just copying the attributes set by the parent bean.
Here's an example:
Using the attribute 'abstract' you ensure that bean won't be instantiated and it will be used just as a template.
More info here: link text
http://stackoverflow.com/questions/794496/how-can-i-define-multiple-sessionfactory-instances-in-spring
No comments:
Post a Comment