Top Description Constructors Methods
org.springframework.beans.factory.parsing

public Class NullSourceExtractor

extends Object
implements SourceExtractor
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.parsing.SourceExtractor
Imports
org.springframework.core.io.Resource, org.springframework.lang.Nullable

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.

Author
Rob Harrop
Since
2.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
extractSource(Object
the original source metadata (never null)
sourceCandidate
,
Resource
the resource that defines the given source object (may be null)
definitionResource
)

Implements org.springframework.beans.factory.parsing.SourceExtractor.extractSource.

This implementation simply returns null for any input.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NullSourceExtractorback to summary
public NullSourceExtractor()

Method Detail

extractSourceback to summary
public Object extractSource(Object sourceCandidate, Resource definitionResource)

Implements org.springframework.beans.factory.parsing.SourceExtractor.extractSource.

This implementation simply returns null for any input.

Parameters
sourceCandidate:Object

Doc from org.springframework.beans.factory.parsing.SourceExtractor.extractSource.

the original source metadata (never null)

definitionResource:Resource

Doc from org.springframework.beans.factory.parsing.SourceExtractor.extractSource.

the resource that defines the given source object (may be null)

Returns:Object

Doc from org.springframework.beans.factory.parsing.SourceExtractor.extractSource.

the source metadata object to store (may be null)

Annotations
@Override
@Nullable