Class BeanInstanceFactory

java.lang.Object
com.suncode.pwfl.component.support.BeanInstanceFactory
All Implemented Interfaces:
InstanceFactory

@Api public class BeanInstanceFactory extends Object implements 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 Details

    • BeanInstanceFactory

      public BeanInstanceFactory(org.springframework.context.ApplicationContext applicationContext)
  • Method Details

    • createInstance

      public <T> T createInstance(Class<T> clazz)
      Description copied from interface: InstanceFactory
      Creates new instance of given class.
      Specified by:
      createInstance in interface InstanceFactory
      Parameters:
      clazz - component class
      Returns:
      component instance