类 PassThroughSourceExtractor
- java.lang.Object
- org.springframework.beans.factory.parsing.PassThroughSourceExtractor
- 所有已实现的接口:
SourceExtractor
public class PassThroughSourceExtractor extends Object implements SourceExtractor
SimpleSourceExtractor
implementation that just passes the candidate source metadata object through for attachment.Using this implementation means that tools will get raw access to the underlying configuration source metadata provided by the tool.
This implementation should not be used in a production application since it is likely to keep too much metadata in memory (unnecessarily).
- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop
构造器概要
构造器 构造器 说明 PassThroughSourceExtractor()
构造器详细资料
PassThroughSourceExtractor
public PassThroughSourceExtractor()
方法详细资料
extractSource
public Object extractSource(Object sourceCandidate, Resource definingResource)
Simply returns the suppliedsourceCandidate
as-is.- 指定者:
extractSource
在接口中SourceExtractor
- 参数:
sourceCandidate
- the source metadatadefiningResource
- the resource that defines the given source object (may benull
)- 返回:
- the supplied
sourceCandidate