All Implemented Interfaces:
FactoryBean
All Known Implementing Classes:
BeanReferenceFactoryBean
false
does not clearly indicate independent instances.
Plain FactoryBean implementations which do not implement
this extended interface are simply assumed to always return independent
instances if their #isSingleton() implementation returns
false
; the exposed object is only accessed on demand.
NOTE: This interface is a special purpose interface, mainly for internal use within the framework and within collaborating frameworks. In general, application-provided FactoryBeans should simply implement the plain FactoryBean interface. New methods might be added to this extended interface even in point releases.
Juergen
- Hoeller2.0.3
- Method from org.springframework.beans.factory.SmartFactoryBean Summary: |
---|
isEagerInit, isPrototype |
Method from org.springframework.beans.factory.SmartFactoryBean Detail: |
---|
A standard FactoryBean is not expected to initialize eagerly:
Its #getObject() will only be called for actual access, even
in case of a singleton object. Returning |
The prototype status of the FactoryBean itself will generally be provided by the owning BeanFactory ; usually, it has to be defined as singleton there. This method is supposed to strictly check for independent instances;
it should not return |