org.springframework.beans.factory.config
Class ResourceFactoryBean
- public class ResourceFactoryBean
- implements FactoryBean
FactoryBean for Resource descriptors. Exposes a looked-up Resource object.
Delegates to the ApplicationContext's getResource method.
Resource loading behavior is specific to the context implementation.
- Author:
- Juergen Hoeller
- Since: 28.12.2003
- See Also: org.springframework.context.ApplicationContext.getResource(java.lang.String)
getObject
public Object getObject()
getObjectType
public Class getObjectType()
isSingleton
public boolean isSingleton()
setLocation
public void setLocation(Resource location)
- Set the resource location.
- Parameters:
- location - the resource location to feed into getResource
to Class org.springframework.core.io.Resource