FactoryBean implementation that takes a list of location Strings
and creates a sorted array of Resource instances.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private ResourcePatternResolver |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Resource[] | createInstance()
Implements abstract org. Template method that subclasses must override to construct the object returned by this factory. |
| public Class | getObjectType()
Implements abstract org. Implements org. This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods. |
| public void | setResourceLoader(ResourceLoader
the ResourceLoader object to be used by this object resourceLoader)Implements org. Set the ResourceLoader that this object runs in. This might be a ResourcePatternResolver, which can be checked
through |
| locations | back to summary |
|---|---|
| private final List<String> locations | |
| resourcePatternResolver | back to summary |
|---|---|
| private ResourcePatternResolver resourcePatternResolver | |
| SortedResourcesFactoryBean | back to summary |
|---|---|
| public SortedResourcesFactoryBean(List<String> locations) | |
| SortedResourcesFactoryBean | back to summary |
|---|---|
| public SortedResourcesFactoryBean(ResourceLoader resourceLoader, List<String> locations) | |
| createInstance | back to summary |
|---|---|
| protected Resource[] createInstance() throws Exception Implements abstract org. Doc from org. Template method that subclasses must override to construct the object returned by this factory. Invoked on initialization of this FactoryBean in case of
a singleton; else, on each | |
| getObjectType | back to summary |
|---|---|
| public Class Implements abstract org. Implements org. Doc from org. This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.
| |
| setResourceLoader | back to summary |
|---|---|
| public void setResourceLoader(ResourceLoader resourceLoader) Implements org. Doc from org. Set the ResourceLoader that this object runs in. This might be a ResourcePatternResolver, which can be checked
through Invoked after population of normal bean properties but before an init callback
like InitializingBean's
| |