public class NullSourceExtractor extends Object implements SourceExtractor
SourceExtractor that returns null
as the source metadata.
This is the default implementation and prevents too much metadata from being held in memory during normal (non-tooled) runtime usage.
| 构造器和说明 |
|---|
NullSourceExtractor() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
extractSource(Object sourceCandidate,
org.springframework.core.io.Resource definitionResource)
This implementation simply returns
null for any input. |
@Nullable public Object extractSource(Object sourceCandidate, @Nullable org.springframework.core.io.Resource definitionResource)
null for any input.extractSource 在接口中 SourceExtractorsourceCandidate - the original source metadata (never null)definitionResource - the resource that defines the given source object
(may be null)null)