Package org.jboss.set.pull.processor
Class AbstractProcessor
java.lang.Object
org.jboss.set.pull.processor.AbstractProcessor
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
OpenPRProcessor
Abstract class. Base for processors. Provide basic code to allow simpler processor dev.
- Author:
- baranowb
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Loggerprotected ProcessorConfigprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List<PullRequestReference>Processor can fetch PRs based on any criteria it sees fit and by any means.abstract ProcessorPhasegetPhase()Returh phase for which implementation will work.voidinit(ProcessorConfig processorConfig) protected voidprotected voidvoidprocess()
-
Field Details
-
LOGGER
-
processorConfig
-
simpleName
-
-
Constructor Details
-
AbstractProcessor
public AbstractProcessor()
-
-
Method Details
-
init
-
getPhase
Returh phase for which implementation will work. This is used to pick proper evaluators and actions -
fetchPullRequestsRaw
Processor can fetch PRs based on any criteria it sees fit and by any means.fetchPullRequests()will call it and perform some filtering.- Returns:
-
process
- Specified by:
processin interfaceProcessor- Throws:
ProcessorException
-
log
-
log
-