ets / hishare

Health Information Sharing service for the distribution and receipt of sensitive data in a compliant way
3 stars 0 forks source link

Refactor beans with property setters #4

Closed ets closed 13 years ago

ets commented 13 years ago

One of the benefits of Spring IOC is that bean lifecycle is guaranteed. As such we generally want to steer away from constructor injection and instead rely upon individual setters for configuring our beans. Default values for a class should be implemented by declaring an initial value for each property.

Currently, constructor injection is used for several of our beans and we should refactor them to use discrete setters instead.