public abstract class AbstractProcessor extends Object implements Processor
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOGGER |
protected ProcessorConfig |
processorConfig |
protected String |
simpleName |
| Constructor and Description |
|---|
AbstractProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<PullRequestReference> |
fetchPullRequestsRaw()
Processor can fetch PRs based on any criteria it sees fit and by any means.
|
abstract ProcessorPhase |
getPhase()
Returh phase for which implementation will work.
|
void |
init(ProcessorConfig processorConfig) |
protected void |
log(Level level,
String msg) |
protected void |
log(Level level,
String msg,
Throwable t) |
void |
process() |
protected static final Logger LOGGER
protected ProcessorConfig processorConfig
protected final String simpleName
public void init(ProcessorConfig processorConfig)
public abstract ProcessorPhase getPhase()
protected abstract List<PullRequestReference> fetchPullRequestsRaw()
fetchPullRequests()
will call it and perform some filtering.public void process()
throws ProcessorException
process in interface ProcessorProcessorExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.