Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implemented by

Index

Methods

getBean

  • Instantiate bean in context or retrieve it if exists.

    throws

    {Exception} - when could not resolve name or token to bean comply with.

    Type parameters

    • T

    Parameters

    • wishedBean: TWishedBeanOrFactory | T

      bean name or token to search.

    • Optional required: boolean

      throw exception if bean not found or not instantiated.

    • Optional extraBeanPathMap: Map<any, TWishedBeanOrFactory>

      extends context search bean mapping.

    • Optional debug: boolean

      show beans names list to console.

    Returns Promise<T | null>

getCachedBean

  • Retrieve instantiated bean fron context.

    throws

    {Exception} - if bean is not exists or could not resolve name or token to bean comply with.

    Type parameters

    • T

    Parameters

    • wishedBean: TWishedBeanOrFactory | T

      bean name or token to search.

    • Optional required: boolean

      throw exception if bean not found or not instantiated.

    • Optional extraBeanPathMap: Map<any, TWishedBeanOrFactory>

      extends context search bean mapping.

    • Optional debug: boolean

      show beans names list to console.

    Returns T | null

set

Generated using TypeDoc