tigase.kernel.beans

## Interface BeanFactory<T>

- Type Parameters:
    `T` - type of created bean.

      public interface BeanFactory<T>

  Interface to create factories of beans.
  Factory is responsible to create instance of bean and inject all dependencies!

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `createInstance()` Create instance of bean.

- - ### Method Detail

    - #### createInstance

          T createInstance()
                    throws KernelException

      Create instance of bean.

      Remember, that dependencies will not be injected to this bean. Factory must do that!

      Returns:
        instancje of bean.
      Throws:
        `KernelException` - when something goes wrong.

Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.