public class AbstractMatcher extends Object implements VersionMatcher
| Modifier and Type | Field and Description |
|---|---|
protected AgentLogger |
LOGGER
The logger.
|
protected List<VersionMatcher> |
matchers
The matchers.
|
protected boolean |
shouldApply
The should apply.
|
| Constructor and Description |
|---|
AbstractMatcher(Versions versions)
Instantiates a new abstract matcher.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isApply()
Return true if this matcher should be applied!.
|
VersionMatchResult |
matches(DeploymentInfo info)
Return a version match result.
|
String |
toString() |
protected AgentLogger LOGGER
protected final List<VersionMatcher> matchers
protected boolean shouldApply
public AbstractMatcher(Versions versions)
versions - the versionspublic boolean isApply()
VersionMatcherisApply in interface VersionMatcherpublic VersionMatchResult matches(DeploymentInfo info)
VersionMatcherVersionMatchResult.SKIPPED should be returned so the
next one will have a chance to decide.matches in interface VersionMatcherinfo - the infoCopyright © 2018. All rights reserved.