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.
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.