@Singleton @Named(value="OddEvenVersionPolicy") @Description(value="A VersionPolicy implementation that selects even version numbers only for releases") public final class OddEvenVersionPolicy extends Object implements VersionPolicy
VersionPolicy
implementation that propose even version numbers only for releases and odd
numbers for development. For example:1.0.0-SNAPSHOT
gets 1.0.0
for next release,1.0.1-SNAPSHOT
gets 1.0.2
for next release,1.0.2
gets 1.0.3-SNAPSHOT
for next development version.Constructor and Description |
---|
OddEvenVersionPolicy() |
Modifier and Type | Method and Description |
---|---|
VersionPolicyResult |
getDevelopmentVersion(VersionPolicyRequest request) |
VersionPolicyResult |
getReleaseVersion(VersionPolicyRequest request) |
public VersionPolicyResult getReleaseVersion(VersionPolicyRequest request) throws PolicyException
getReleaseVersion
in interface VersionPolicy
PolicyException
public VersionPolicyResult getDevelopmentVersion(VersionPolicyRequest request) throws PolicyException
getDevelopmentVersion
in interface VersionPolicy
PolicyException
Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.