Field-Based Injection

To use field-based resource injection, declare a field and decorate
it with the @Resource annotation. The container will
infer the name and type of the resource if the name and type elements are not specified. If you do specify the type element,
it must match the field’s type declaration.