@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.Constructor and Description |
---|
BeanInstanceFactory(org.springframework.context.ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
<T> T |
createInstance(Class<T> clazz)
Creates new instance of given class.
|
public BeanInstanceFactory(org.springframework.context.ApplicationContext applicationContext)
public <T> T createInstance(Class<T> clazz)
InstanceFactory
createInstance
in interface InstanceFactory
clazz
- component classCopyright © 2019 Suncode. All rights reserved.