Class NullSourceExtractor
java.lang.Object
org.springframework.beans.factory.parsing.NullSourceExtractor
- All Implemented Interfaces:
- SourceExtractor
Simple implementation of 
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.
- Since:
- 2.0
- Author:
- Rob Harrop
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionextractSource(Object sourceCandidate, Resource definitionResource) This implementation simply returnsnullfor any input.
- 
Constructor Details- 
NullSourceExtractorpublic NullSourceExtractor()
 
- 
- 
Method Details- 
extractSource@Nullable public Object extractSource(Object sourceCandidate, @Nullable Resource definitionResource) This implementation simply returnsnullfor any input.- Specified by:
- extractSourcein interface- SourceExtractor
- Parameters:
- sourceCandidate- the original source metadata (never- null)
- definitionResource- the resource that defines the given source object (may be- null)
- Returns:
- the source metadata object to store (may be null)
 
 
-