Class ManifestMatcher
- java.lang.Object
-
- org.hotswap.agent.versions.matcher.ManifestMatcher
-
- All Implemented Interfaces:
VersionMatcher
public class ManifestMatcher extends Object implements VersionMatcher
The ManifestMatcher will parse and match a single @Manifest definition- Author:
- alpapad@gmail.com
-
-
Constructor Summary
Constructors Constructor Description ManifestMatcher(Manifest cfg)Instantiates a new manifest matcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionRangegetExcludes()Gets the excluded versions rangeVersionRangegetIncludes()Gets the included versions rangeMap<Attributes.Name,String>getProperties()Gets the properties.booleanisApply()Return true if this matcher should be applied!.VersionMatchResultmatches(DeploymentInfo info)Return a version match result.StringtoString()
-
-
-
Constructor Detail
-
ManifestMatcher
public ManifestMatcher(Manifest cfg) throws InvalidVersionSpecificationException
Instantiates a new manifest matcher.- Parameters:
cfg- the cfg- Throws:
InvalidVersionSpecificationException- the invalid version specification exception
-
-
Method Detail
-
getIncludes
public VersionRange getIncludes()
Gets the included versions range- Returns:
- the included versions range
-
getExcludes
public VersionRange getExcludes()
Gets the excluded versions range- Returns:
- the excluded versions range
-
getProperties
public Map<Attributes.Name,String> getProperties()
Gets the properties.- Returns:
- the properties
-
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
-
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
-
-