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 Summary
Constructors -
Method Summary
-
Constructor Details
-
nullSourceExtractor
public nullSourceExtractor()
-
-
Method Details
-
extractSource
public @nullable Object extractSource(Object sourceCandidate, @nullable Resource definitionResource) This implementation simply returnsnullfor any input.- Specified by:
extractSourcein interfaceSourceExtractor- Parameters:
sourceCandidate- the original source metadata (nevernull)definitionResource- the resource that defines the given source object (may benull)- Returns:
- the source metadata object to store (may be
null)
-