com.interface21.beans.factory.support
Class AbstractFactoryBean
java.lang.Object
|
+--com.interface21.beans.factory.support.AbstractFactoryBean
- All Implemented Interfaces:
- FactoryBean
- public abstract class AbstractFactoryBean
- extends java.lang.Object
- implements FactoryBean
Convenient superclass for FactoryBean implementations.
Exposes properties for singleton and PropertyValues.
There's no need for FactoryBean implementation to extend this class:
it's just easier in some cases.
- Since:
- 10-Mar-2003
- Version:
- $Revision: 1.1 $
- Author:
- Rod Johnson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFactoryBean
public AbstractFactoryBean()
getPropertyValues
public PropertyValues getPropertyValues()
- Description copied from interface:
FactoryBean
- Property values to pass to new bean instances created
by this factory. Mapped directly onto the bean instance using
reflection. This occurs after any configuration of the
instance performed by the factory itself, and is an
optional step within the control of the owning BeanFactory.
- Specified by:
getPropertyValues in interface FactoryBean
- See Also:
FactoryBean.getPropertyValues()
setPropertyValues
public void setPropertyValues(PropertyValues pvs)
- Sets the PropertyValues, if any, to pass through to
bean instances created by this factory.
- Parameters:
pvs - The pvs to set
isSingleton
public boolean isSingleton()
- Description copied from interface:
FactoryBean
- Is the bean managed by this factory a singleton
or a prototype? That is, will getBean() always
return the same object?
The singleton status of a FactoryBean will generally
be provided by the owning BeanFactory.
- Specified by:
isSingleton in interface FactoryBean
- See Also:
FactoryBean.isSingleton()
setSingleton
public void setSingleton(boolean singleton)
- Sets the singleton.
- Parameters:
singleton - The singleton to set
Rod Johnson and Spring contributors 2001-2003.