public abstract class BranchProperty extends AbstractDescribableImpl<BranchProperty> implements ExtensionPoint
Branch.
SCMSources can use properties to convey additional implementation/SCM specific
information that's not captured in the base Branch class.
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
BranchProperty() |
| Modifier and Type | Method and Description |
|---|---|
protected static <T> ArrayList<T> |
asArrayList(List<T> list)
Utility helper method that ensures you have an
ArrayList but avoids copying unless required. |
ProjectDecorator |
decorator(AbstractProject project)
Deprecated.
Should have been typed to take
Project and Build rather than
AbstractProject and AbstractBuild. |
ProjectDecorator |
decorator(Class clazz)
Deprecated.
Should have been typed to take
Project and Build rather than
AbstractProject and AbstractBuild. |
BranchPropertyDescriptor |
getDescriptor() |
<P extends Job<P,B>,B extends Run<P,B>> |
jobDecorator(Class<P> clazz)
Returns a
JobDecorator for the specific job type. |
@CheckForNull @Deprecated public final ProjectDecorator decorator(AbstractProject project)
Project and Build rather than
AbstractProject and AbstractBuild.ProjectDecorator for the supplied project instance.project - the project instance.ProjectDecorator or null if none appropriate to this type of project.@CheckForNull @Deprecated public ProjectDecorator decorator(Class clazz)
Project and Build rather than
AbstractProject and AbstractBuild.ProjectDecorator for the specific project type.clazz - the project class.ProjectDecorator or null if none appropriate to this type of project.@CheckForNull public <P extends Job<P,B>,B extends Run<P,B>> JobDecorator<P,B> jobDecorator(Class<P> clazz)
JobDecorator for the specific job type.P - the type of job.B - the type of run of the job.clazz - the job class.JobDecorator or null if none appropriate to this type of job.@NonNull public BranchPropertyDescriptor getDescriptor()
getDescriptor in interface Describable<BranchProperty>getDescriptor in class AbstractDescribableImpl<BranchProperty>Copyright © 2016–2019. All rights reserved.