Class BeanInstanceFactory
java.lang.Object
com.suncode.pwfl.component.support.BeanInstanceFactory
- All Implemented Interfaces:
InstanceFactory
InstanceFactory that creates components using given ApplicationContext. Created
instances are fully initialized beans with resolved Autowired dependencies.- Author:
- Cezary Kozar 26 lip 2016
-
Constructor Summary
ConstructorsConstructorDescriptionBeanInstanceFactory(org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescription<T> TcreateInstance(Class<T> clazz) Creates new instance of given class.
-
Constructor Details
-
BeanInstanceFactory
public BeanInstanceFactory(org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
createInstance
Description copied from interface:InstanceFactoryCreates new instance of given class.- Specified by:
createInstancein interfaceInstanceFactory- Parameters:
clazz- component class- Returns:
- component instance
-