java.lang.Objectorg.springframework.beans.factory.config.AbstractFactoryBean
All Implemented Interfaces:
BeanClassLoaderAware, DisposableBean, BeanFactoryAware, InitializingBean, FactoryBean
Direct Known Subclasses:
ObjectFactoryCreatingFactoryBean, MapFactoryBean, SetFactoryBean, ServiceFactoryBean, ListFactoryBean, AbstractServiceLoaderBasedFactoryBean, ServiceListFactoryBean, ServiceLoaderFactoryBean
If the "singleton" flag is true (the default),
this class will create the object that it creates exactly once
on initialization and subsequently return said singleton instance
on all calls to the #getObject() method.
Else, this class will create a new instance every time the #getObject() method is invoked. Subclasses are responsible for implementing the abstract #createInstance() template method to actually create the object(s) to expose.
Juergen - HoellerKeith - Donald1.0.2 - | Field Summary | ||
|---|---|---|
| protected final Log | logger | Logger available to subclasses |
| Method from org.springframework.beans.factory.config.AbstractFactoryBean Summary: |
|---|
| afterPropertiesSet, createInstance, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, getObjectType, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.beans.factory.config.AbstractFactoryBean Detail: |
|---|
|
Invoked on initialization of this FactoryBean in case of a singleton; else, on each #getObject() call. |
|
The default implementation is empty. |
|
Falls back to a SimpleTypeConverter when not running in a BeanFactory. |
The default implementation returns this FactoryBean's object type,
provided that it is an interface, or |
|
|
|
|
|
true (a singleton). |