Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.beans.factory.parsing
Class NullSourceExtractor

    java.lang.Object
      org.springframework.beans.factory.parsing.NullSourceExtractor

All Implemented Interfaces:
  SourceExtractor

    public class NullSourceExtractor

extends Object
implements 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
`NullSourceExtractor()`

Method Summary
`Object` | `extractSource(Object sourceCandidate, Resource definitionResource)` This implementation simply returns `null` for any input.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NullSourceExtractor

    public NullSourceExtractor()

Method Detail

### extractSource

    public Object extractSource(Object sourceCandidate,
                                Resource definitionResource)

  This implementation simply returns `null` for any input.

  Specified by:
    `extractSource` in 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`)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002-2008 The Spring Framework.