Class PassThroughSourceExtractor
- java.lang.Object
- org.springframework.beans.factory.parsing.PassThroughSourceExtractor
- All Implemented Interfaces:
SourceExtractor
public class PassThroughSourceExtractor extends Object implements SourceExtractor
SimpleSourceExtractorimplementation 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).
- Since:
- 2.0
- Author:
- Rob Harrop
Constructor Summary
Constructors Constructor Description PassThroughSourceExtractor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectextractSource(Object sourceCandidate, Resource definingResource)Simply returns the suppliedsourceCandidateas-is.
Constructor Detail
PassThroughSourceExtractor
public PassThroughSourceExtractor()
Method Detail
extractSource
public Object extractSource(Object sourceCandidate, Resource definingResource)
Simply returns the suppliedsourceCandidateas-is.- Specified by:
extractSourcein interfaceSourceExtractor- Parameters:
sourceCandidate- the source metadatadefiningResource- the resource that defines the given source object (may benull)- Returns:
- the supplied
sourceCandidate