类 ResourcesItemReader

  • 所有已实现的接口:
    ItemReader<org.springframework.core.io.Resource>, ItemStream, ItemStreamReader<org.springframework.core.io.Resource>

    public class ResourcesItemReader
    extends AbstractItemStreamItemReader<org.springframework.core.io.Resource>
    ItemReader which produces Resource instances from an array. This can be used conveniently with a configuration entry that injects a pattern (e.g. mydir/*.txt, which can then be converted by Spring to an array of Resources by the ApplicationContext.

    Thread-safe between calls to open(ExecutionContext). The ExecutionContext is not accurate in a multi-threaded environment, so do not rely on that data for restart (i.e. always open with a fresh context).
    从以下版本开始:
    2.1
    作者:
    Dave Syer, Mahmoud Ben Hassine
    另请参阅:
    ResourceArrayPropertyEditor