public class PassThroughSourceExtractor extends java.lang.Object implements SourceExtractor
SourceExtractor 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).
| Constructor and Description |
|---|
PassThroughSourceExtractor() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
extractSource(java.lang.Object sourceCandidate,
org.springframework.core.io.Resource definingResource)
Simply returns the supplied
sourceCandidate as-is. |
public java.lang.Object extractSource(java.lang.Object sourceCandidate,
org.springframework.core.io.Resource definingResource)
sourceCandidate as-is.extractSource in interface SourceExtractorsourceCandidate - the source metadatadefiningResource - the resource that defines the given source object
(may be null)sourceCandidate