Package 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!
Factory is responsible to create instance of bean and inject all dependencies!
-
Method Summary
-
Method Details
-
createInstance
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.
-