public class

PassThroughSourceExtractor

extends Object
implements SourceExtractor
java.lang.Object
   ↳ org.springframework.beans.factory.parsing.PassThroughSourceExtractor

Class Overview

Simple SourceExtractor implementation 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).

Summary

Public Constructors
PassThroughSourceExtractor()
Public Methods
Object extractSource(Object sourceCandidate, Resource definingResource)
Simply returns the supplied sourceCandidate as-is.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.parsing.SourceExtractor

Public Constructors

public PassThroughSourceExtractor ()

Also: SpringBeans

Public Methods

public Object extractSource (Object sourceCandidate, Resource definingResource)

Simply returns the supplied sourceCandidate as-is.

Parameters
sourceCandidate the source metadata
definingResource the resource that defines the given source object (may be null)
Returns
  • the supplied sourceCandidate