接口 ResourceAware
public interface ResourceAware
Marker interface indicating that an item should have the SpringResourcein which it was read from, set on it. The canonical example is withinMultiResourceItemReader, which will set the current resource on any items that implement this interface.- 作者:
- Lucas Ward
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidsetResource(org.springframework.core.io.Resource resource)
方法详细资料
setResource
void setResource(org.springframework.core.io.Resource resource)