| java.lang.Object org.springframework.beans.factory.support.SimpleInstantiationStrategy
All known Subclasses: org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy,
SimpleInstantiationStrategy | public class SimpleInstantiationStrategy implements InstantiationStrategy(Code) | | Simple object instantiation strategy for use in a BeanFactory.
Does not support Method Injection, although it provides hooks for subclasses
to override to add Method Injection support, for example by overriding methods.
author: Rod Johnson author: Juergen Hoeller since: 1.1 |
Method Summary | |
public Object | instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner) | public Object | instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Constructor ctor, Object[] args) | public Object | instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object[] args) | protected Object | instantiateWithMethodInjection(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner) Subclasses can override this method, which is implemented to throw
UnsupportedOperationException, if they can instantiate an object with
the Method Injection specified in the given RootBeanDefinition. | protected Object | instantiateWithMethodInjection(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Constructor ctor, Object[] args) Subclasses can override this method, which is implemented to throw
UnsupportedOperationException, if they can instantiate an object with
the Method Injection specified in the given RootBeanDefinition. |
instantiateWithMethodInjection | protected Object instantiateWithMethodInjection(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner)(Code) | | Subclasses can override this method, which is implemented to throw
UnsupportedOperationException, if they can instantiate an object with
the Method Injection specified in the given RootBeanDefinition.
Instantiation should use a no-arg constructor.
|
instantiateWithMethodInjection | protected Object instantiateWithMethodInjection(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Constructor ctor, Object[] args)(Code) | | Subclasses can override this method, which is implemented to throw
UnsupportedOperationException, if they can instantiate an object with
the Method Injection specified in the given RootBeanDefinition.
Instantiation should use the given constructor and parameters.
|
|
|