spring-jdbc

org.springframework.jdbc.config
Class SortedResourcesFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.core.io.Resource[]>
      extended by org.springframework.jdbc.config.SortedResourcesFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.springframework.core.io.Resource[]>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware

public class SortedResourcesFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.core.io.Resource[]>
implements org.springframework.context.ResourceLoaderAware

FactoryBean implementation that takes a list of location Strings and creates a sorted array of Resource instances.

Since:
3.0
Author:
Dave Syer, Juergen Hoeller, Christian Dupuis

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
SortedResourcesFactoryBean(java.util.List<java.lang.String> locations)
           
SortedResourcesFactoryBean(org.springframework.core.io.ResourceLoader resourceLoader, java.util.List<java.lang.String> locations)
           
 
Method Summary
protected  org.springframework.core.io.Resource[] createInstance()
           
 java.lang.Class<? extends org.springframework.core.io.Resource[]> getObjectType()
           
 void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
           
 
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

SortedResourcesFactoryBean

public SortedResourcesFactoryBean(java.util.List<java.lang.String> locations)

SortedResourcesFactoryBean

public SortedResourcesFactoryBean(org.springframework.core.io.ResourceLoader resourceLoader,
                                  java.util.List<java.lang.String> locations)
Method Detail

setResourceLoader

public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Specified by:
setResourceLoader in interface org.springframework.context.ResourceLoaderAware

getObjectType

public java.lang.Class<? extends org.springframework.core.io.Resource[]> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.springframework.core.io.Resource[]>
Specified by:
getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.core.io.Resource[]>

createInstance

protected org.springframework.core.io.Resource[] createInstance()
                                                         throws java.lang.Exception
Specified by:
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.core.io.Resource[]>
Throws:
java.lang.Exception

spring-jdbc