org.springframework.beans.factory.config
public class: ResourceFactoryBean [javadoc |
source]
java.lang.Object
org.springframework.beans.factory.config.ResourceFactoryBean
All Implemented Interfaces:
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.
Also see:
- org.springframework.context.ApplicationContext#getResource
- author:
Juergen - Hoeller
- since:
28.12.2003 -
| Method from org.springframework.beans.factory.config.ResourceFactoryBean Detail: |
public Object getObject() {
return this.resource;
}
|
public Class getObjectType() {
return (this.resource != null ? this.resource.getClass() : Resource.class);
}
|
public boolean isSingleton() {
return true;
}
|
public void setLocation(Resource location) {
this.resource = location;
}
Set the resource location. |