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 Detail

      • createInstance

        T createInstance()
                  throws KernelException
        Create instance of bean.

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

        instancje of bean.
        KernelException - when something goes wrong.