Class AbstractMatcher
- java.lang.Object
-
- org.hotswap.agent.versions.matcher.AbstractMatcher
-
- All Implemented Interfaces:
VersionMatcher
- Direct Known Subclasses:
MethodMatcher,PluginMatcher
public class AbstractMatcher extends Object implements VersionMatcher
The Class AbstractMatcher.- Author:
- alpapad@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentLoggerLOGGERThe logger.protected List<VersionMatcher>matchersThe matchers.protected booleanshouldApplyThe should apply.
-
Constructor Summary
Constructors Constructor Description AbstractMatcher(Versions versions)Instantiates a new abstract matcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisApply()Return true if this matcher should be applied!.VersionMatchResultmatches(DeploymentInfo info)Return a version match result.StringtoString()
-
-
-
Field Detail
-
LOGGER
protected AgentLogger LOGGER
The logger.
-
matchers
protected final List<VersionMatcher> matchers
The matchers.
-
shouldApply
protected boolean shouldApply
The should apply.
-
-
Constructor Detail
-
AbstractMatcher
public AbstractMatcher(Versions versions)
Instantiates a new abstract matcher.- Parameters:
versions- the versions
-
-
Method Detail
-
isApply
public boolean isApply()
Description copied from interface:VersionMatcherReturn true if this matcher should be applied!.- Specified by:
isApplyin interfaceVersionMatcher- Returns:
- true, if is apply
-
matches
public VersionMatchResult matches(DeploymentInfo info)
Description copied from interface:VersionMatcherReturn a version match result. When an implementation is unable to decide then aVersionMatchResult.SKIPPEDshould be returned so the next one will have a chance to decide.- Specified by:
matchesin interfaceVersionMatcher- Parameters:
info- the info- Returns:
- the version match result
-
-