public interface ComponentRegistry
Named annotated methods as an java-objects. Instance of this object
can be obtained in configuration method annotated with Named.| Modifier and Type | Method and Description |
|---|---|
Component |
getComponent(String componentName)
Get a single component based on unique component id.
|
Collection<Component> |
getComponents(Class<?> type)
Get a collection of components annotated with
Named annotation based on return type. |
Component getComponent(String componentName)
componentName - can be a value of Named annotationCollection<Component> getComponents(Class<?> type)
Named annotation based on return type.type - of componentsCopyright © 2020. All rights reserved.