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!

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