Work in progress, this post is still in ‘work in progress’ status

Injection

Avoid field and setter injection

It should be used only for optional dependencies or in test code.

Good

Bad

References

Use constructor injection

Good

References

Use @Inject in place of @Autowired