类 PassThroughSourceExtractor

  • 所有已实现的接口:
    SourceExtractor

    public class PassThroughSourceExtractor
    extends Object
    implements SourceExtractor
    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).

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

      • extractSource

        public Object extractSource​(Object sourceCandidate,
                                    Resource definingResource)
        Simply returns the supplied sourceCandidate as-is.
        指定者:
        extractSource 在接口中 SourceExtractor
        参数:
        sourceCandidate - the source metadata
        definingResource - the resource that defines the given source object (may be null)
        返回:
        the supplied sourceCandidate