Package jenkins.branch
Class BranchPropertyStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BranchPropertyStrategy>
-
- jenkins.branch.BranchPropertyStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BranchPropertyStrategy>
- Direct Known Subclasses:
DefaultBranchPropertyStrategy
,NamedExceptionsBranchPropertyStrategy
public abstract class BranchPropertyStrategy extends AbstractDescribableImpl<BranchPropertyStrategy> implements ExtensionPoint
A strategy for determining the properties that apply to a specificSCMHead
.- Author:
- Stephen Connolly
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BranchPropertyStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BranchPropertyStrategyDescriptor
getDescriptor()
abstract List<BranchProperty>
getPropertiesFor(jenkins.scm.api.SCMHead head)
Returns the list of properties to be injected into theBranch
for the specifiedSCMHead
.
-
-
-
Method Detail
-
getPropertiesFor
@NonNull public abstract List<BranchProperty> getPropertiesFor(jenkins.scm.api.SCMHead head)
Returns the list of properties to be injected into theBranch
for the specifiedSCMHead
.- Parameters:
head
- theSCMHead
- Returns:
- the list of properties.
-
getDescriptor
public BranchPropertyStrategyDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<BranchPropertyStrategy>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<BranchPropertyStrategy>
-
-