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.
Constructor and Description |
---|
NullSourceExtractor() |
Modifier and Type | Method and Description |
---|---|
Object |
extractSource(Object sourceCandidate,
Resource definitionResource)
This implementation simply returns
null for any input. |
public Object extractSource(Object sourceCandidate, Resource definitionResource)
null
for any input.extractSource
in interface SourceExtractor
sourceCandidate
- the original source metadata (never null
)definitionResource
- the resource that defines the given source object
(may be null
)null
)