|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.beans.factory.config.AbstractFactoryBean<Resource[]>
org.springframework.jdbc.config.SortedResourcesFactoryBean
public class SortedResourcesFactoryBean
FactoryBean implementation that takes a list of location Strings
and creates a sorted array of Resource instances.
| Field Summary |
|---|
| Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
|---|
logger |
| Constructor Summary | |
|---|---|
SortedResourcesFactoryBean(List<String> locations)
|
|
SortedResourcesFactoryBean(ResourceLoader resourceLoader,
List<String> locations)
|
|
| Method Summary | |
|---|---|
protected Resource[] |
createInstance()
Template method that subclasses must override to construct the object returned by this factory. |
Class<? extends Resource[]> |
getObjectType()
This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods. |
void |
setResourceLoader(ResourceLoader resourceLoader)
Set the ResourceLoader that this object runs in. |
| Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
|---|
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortedResourcesFactoryBean(List<String> locations)
public SortedResourcesFactoryBean(ResourceLoader resourceLoader,
List<String> locations)
| Method Detail |
|---|
public void setResourceLoader(ResourceLoader resourceLoader)
ResourceLoaderAwareThis might be a ResourcePatternResolver, which can be checked
through instanceof ResourcePatternResolver. See also the
ResourcePatternUtils.getResourcePatternResolver method.
Invoked after population of normal bean properties but before an init callback
like InitializingBean's afterPropertiesSet or a custom init-method.
Invoked before ApplicationContextAware's setApplicationContext.
setResourceLoader in interface ResourceLoaderAwareresourceLoader - ResourceLoader object to be used by this objectResourcePatternResolver,
ResourcePatternUtils.getResourcePatternResolver(org.springframework.core.io.ResourceLoader)public Class<? extends Resource[]> getObjectType()
AbstractFactoryBean
getObjectType in interface FactoryBean<Resource[]>getObjectType in class AbstractFactoryBean<Resource[]>null if not known at the time of the callFactoryBean.getObjectType()
protected Resource[] createInstance()
throws Exception
AbstractFactoryBeanInvoked on initialization of this FactoryBean in case of
a singleton; else, on each AbstractFactoryBean.getObject() call.
createInstance in class AbstractFactoryBean<Resource[]>Exception - if an exception occured during object creationAbstractFactoryBean.getObject()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||