Interface HandleGetter
- All Known Implementing Classes:
HandleService
public interface HandleGetter
Interface for fetching beans by handles.
- Since:
- 1.0
- Version:
- 2022-08-30
-
Method Summary
Modifier and TypeMethodDescriptionGets the bean with the specified handle path.<T> T
Gets the bean of the specified type for the specified handle path.<T> List<T>
Returns a list of beans of the specified type from the cached set of beans.
-
Method Details
-
getBean
Gets the bean of the specified type for the specified handle path.- Type Parameters:
T
- the expected bean type- Parameters:
path
- the handle path of the beanclazz
- the expected bean class- Returns:
- the specified bean cast to the specified type
-
getBean
Gets the bean with the specified handle path.- Parameters:
path
- the handle path for the bean- Returns:
- the bean for the specified path or null
-
getBeans
Returns a list of beans of the specified type from the cached set of beans.- Parameters:
clazz
- the class of bean to return
-