This data is usually used by a sub-system of HK2, and not really meant to be used by applications. (At least for now.) The main benefit of metadata is that it's available right away as soon as the {@link Habitat} is properly initialized, even beforecomponent classes are loaded. In contrast, accessing annotations would require classes to be loaded and resolved. @return can be empty but never null. The values are read-only. @see Service#metadata()
|
|