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 Type
    Method
    Description
    Gets the bean with the specified handle path.
    <T> T
    getBean(String path, Class<T> clazz)
    Gets the bean of the specified type for the specified handle path.
    <T> List<T>
    getBeans(Class<T> clazz)
    Returns a list of beans of the specified type from the cached set of beans.
  • Method Details

    • getBean

      <T> T getBean(String path, Class<T> clazz)
      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 bean
      clazz - the expected bean class
      Returns:
      the specified bean cast to the specified type
    • getBean

      Object getBean(String path)
      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

      <T> List<T> getBeans(Class<T> clazz)
      Returns a list of beans of the specified type from the cached set of beans.
      Parameters:
      clazz - the class of bean to return