Interface BeanService

All Superinterfaces:
Serializable
All Known Implementing Classes:
BeanServiceImpl

public interface BeanService extends Serializable
Service used to get a bean instance given its type and qualifiers.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    get(Class<T> type)
    Get a new bean instance for the given bean type
    <T> T
    get(Class<T> type, String qualifier)
    Get a new bean instance for the given bean type
  • Method Details

    • get

      <T> T get(Class<T> type, String qualifier)
      Get a new bean instance for the given bean type
      Type Parameters:
      T - the bean type
      Parameters:
      type - the bean class
      qualifier - the bean qualifier
      Returns:
      the bean instance
    • get

      <T> T get(Class<T> type)
      Get a new bean instance for the given bean type
      Type Parameters:
      T - the bean type
      Parameters:
      type - the bean class
      Returns:
      the bean instance