java.lang.Object | |||
↳ | org.springframework.core.SimpleAliasRegistry | ||
↳ | org.springframework.beans.factory.support.DefaultSingletonBeanRegistry | ||
↳ | org.springframework.beans.factory.support.FactoryBeanRegistrySupport |
Known Direct Subclasses |
Known Indirect Subclasses |
Support base class for singleton registries which need to handle
FactoryBean
instances,
integrated with DefaultSingletonBeanRegistry
's singleton management.
Serves as base class for AbstractBeanFactory
.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the security context for this bean factory.
| |||||||||||
Obtain an object to expose from the given FactoryBean, if available
in cached form.
| |||||||||||
Get a FactoryBean for the given bean if possible.
| |||||||||||
Obtain an object to expose from the given FactoryBean.
| |||||||||||
Determine the type for the given FactoryBean.
| |||||||||||
Post-process the given object that has been obtained from the FactoryBean.
| |||||||||||
Overridden to clear the FactoryBean object cache as well.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
| |||||||||||
From class
org.springframework.core.SimpleAliasRegistry
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.config.SingletonBeanRegistry
| |||||||||||
From interface
org.springframework.core.AliasRegistry
|
Returns the security context for this bean factory. If a security manager is set, interaction with the user code will be executed using the privileged of the security context returned by this method.
Obtain an object to expose from the given FactoryBean, if available in cached form. Quick check for minimal synchronization.
beanName | the name of the bean |
---|
null
if not available
Get a FactoryBean for the given bean if possible.
beanName | the name of the bean |
---|---|
beanInstance | the corresponding bean instance |
BeansException | if the given bean cannot be exposed as a FactoryBean |
---|
Obtain an object to expose from the given FactoryBean.
factory | the FactoryBean instance |
---|---|
beanName | the name of the bean |
shouldPostProcess | whether the bean is subject for post-processing |
BeanCreationException | if FactoryBean object creation failed |
---|
Determine the type for the given FactoryBean.
factoryBean | the FactoryBean instance to check |
---|
null
if the type cannot be determined yet
Post-process the given object that has been obtained from the FactoryBean. The resulting object will get exposed for bean references.
The default implementation simply returns the given object as-is. Subclasses may override this, for example, to apply post-processors.
object | the object obtained from the FactoryBean. |
---|---|
beanName | the name of the bean |
BeansException | if any post-processing failed |
---|
Overridden to clear the FactoryBean object cache as well.
beanName | the name of the bean |
---|