| org.springframework.beans.factory.support.InstantiationStrategy
All known Subclasses: org.springframework.beans.factory.support.SimpleInstantiationStrategy,
InstantiationStrategy | public interface InstantiationStrategy (Code) | | Interface responsible for creating instances corresponding to a root bean definition.
This is pulled out into a strategy as various approaches are possible,
including using CGLIB to create subclasses on the fly to support Method Injection.
author: Rod Johnson since: 1.1 |
Method Summary | |
Object | instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner) Return an instance of the bean with the given name in this factory. | Object | instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Constructor ctor, Object[] args) Return an instance of the bean with the given name in this factory,
creating it via the given constructor. | Object | instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object[] args) Return an instance of the bean with the given name in this factory,
creating it via the given factory method. |
instantiate | Object instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner) throws BeansException(Code) | | Return an instance of the bean with the given name in this factory.
Parameters: beanDefinition - the bean definition Parameters: beanName - name of the bean when it's created in this context.The name can be null if we're autowiring a bean thatdoesn't belong to the factory. Parameters: owner - owning BeanFactory a bean instance for this bean definition throws: BeansException - if the instantiation failed |
instantiate | Object instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Constructor ctor, Object[] args) throws BeansException(Code) | | Return an instance of the bean with the given name in this factory,
creating it via the given constructor.
Parameters: beanDefinition - the bean definition Parameters: beanName - name of the bean when it's created in this context.The name can be null if we're autowiring a beanthat doesn't belong to the factory. Parameters: owner - owning BeanFactory Parameters: ctor - the constructor to use Parameters: args - the constructor arguments to apply a bean instance for this bean definition throws: BeansException - if the instantiation failed |
instantiate | Object instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object[] args) throws BeansException(Code) | | Return an instance of the bean with the given name in this factory,
creating it via the given factory method.
Parameters: beanDefinition - bean definition Parameters: beanName - name of the bean when it's created in this context.The name can be null if we're autowiring a beanthat doesn't belong to the factory. Parameters: owner - owning BeanFactory Parameters: factoryBean - the factory bean instance to call the factory method on,or null in case of a static factory method Parameters: factoryMethod - the factory method to use Parameters: args - the factory method arguments to apply a bean instance for this bean definition throws: BeansException - if the instantiation failed |
|
|