Implied values in contexts and dependency injection annotations

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:

Annotation view

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

Implied value for the @New annotation

For @New, the implied value is derived from the declared type of the injection point:

Implied value for @New


Feedback