The workspace supports implied value support for the @Named and @New annotations.
When you specify an injection point (for example, @Named) and you do not specify a value, the implied value is derived from
the declared type of the injection point. In the Annotations view,
click the hyperlinked annotation to view its attributes:
Implied value for the @Named annotation
For
@Named, the implied value is derived from
the declared type of the injection point, the lowercap version of
the class name, "myTest."
- For Type, it is the lowercase element name
- For Producer methods, it is the lowercase producer method name.)
- For Producer fields, it is the field name.
- There is no implied value for all other cases.
Implied value for the @New annotation
For @New, the implied value is derived from the
declared type of the injection point: