java.lang.Object | |
↳ | org.springframework.beans.factory.support.SimpleInstantiationStrategy |
Known Direct Subclasses |
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return an instance of the bean with the given name in this factory.
| |||||||||||
Return an instance of the bean with the given name in this factory,
creating it via the given factory method.
| |||||||||||
Return an instance of the bean with the given name in this factory,
creating it via the given constructor.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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.
| |||||||||||
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.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.support.InstantiationStrategy
|
Return an instance of the bean with the given name in this factory.
beanDefinition | the bean definition |
---|---|
beanName | name of the bean when it's created in this context.
The name can be null if we're autowiring a bean that
doesn't belong to the factory. |
owner | owning BeanFactory |
Return an instance of the bean with the given name in this factory, creating it via the given factory method.
beanDefinition | bean definition |
---|---|
beanName | name of the bean when it's created in this context.
The name can be null if we're autowiring a bean
that doesn't belong to the factory. |
owner | owning BeanFactory |
factoryBean | the factory bean instance to call the factory method on,
or null in case of a static factory method |
factoryMethod | the factory method to use |
args | the factory method arguments to apply |
Return an instance of the bean with the given name in this factory, creating it via the given constructor.
beanDefinition | the bean definition |
---|---|
beanName | name of the bean when it's created in this context.
The name can be null if we're autowiring a bean
that doesn't belong to the factory. |
owner | owning BeanFactory |
ctor | the constructor to use |
args | the constructor arguments to apply |
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.
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.