public class EventReportingProjectBuildFileParser extends ForwardingProjectBuildFileParserDecorator
ProjectBuildFileParser
that is responsible for reporting parse lifecycle
events like start and finish.
This decouples status reporting functionality so that it can be used with different underlying
ProjectBuildFileParser
s.
delegate
Modifier and Type | Method and Description |
---|---|
void |
close() |
BuildFileManifest |
getManifest(Path buildFile)
Collect all information from a particular, along with metadata about the information, for
example which other files were also parsed.
|
static EventReportingProjectBuildFileParser |
of(ProjectBuildFileParser delegate,
BuckEventBus eventBus)
Static factory method for producing instances of
EventReportingProjectBuildFileParser . |
getIncludedFiles, globResultsMatchCurrentState, reportProfile
public BuildFileManifest getManifest(Path buildFile) throws BuildFileParseException, InterruptedException, IOException
FileParser
getManifest
in interface FileParser<BuildFileManifest>
getManifest
in class ForwardingProjectBuildFileParserDecorator
buildFile
- should be an absolute path to a file. Must have rootPath as its prefix.BuildFileParseException
InterruptedException
IOException
public void close() throws BuildFileParseException, InterruptedException, IOException
close
in interface FileParser<BuildFileManifest>
close
in interface AutoCloseable
close
in class ForwardingProjectBuildFileParserDecorator
BuildFileParseException
InterruptedException
IOException
public static EventReportingProjectBuildFileParser of(ProjectBuildFileParser delegate, BuckEventBus eventBus)
EventReportingProjectBuildFileParser
.