类 NullSourceExtractor

  • 所有已实现的接口:
    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.

    从以下版本开始:
    2.0
    作者:
    Rob Harrop
    • 方法详细资料

      • extractSource

        public Object extractSource​(Object sourceCandidate,
                                    Resource definitionResource)
        This implementation simply returns null for any input.
        指定者:
        extractSource 在接口中 SourceExtractor
        参数:
        sourceCandidate - the original source metadata (never null)
        definitionResource - the resource that defines the given source object (may be null)
        返回:
        the source metadata object to store (may be null)