Package | Description |
---|---|
jenkins.scm.api.trait |
An API/SPI to allow the sharing of common traits between different
SCMSource and
SCMNavigator implementations. |
jenkins.scm.impl.trait |
Modifier and Type | Class and Description |
---|---|
class |
SCMSourceContext<C extends SCMSourceContext<C,R>,R extends SCMSourceRequest>
Represents the context within which a
SCMSource is processing requests. |
Modifier and Type | Method and Description |
---|---|
Class<? extends SCMSourceContext> |
SCMSourceTraitDescriptor.getContextClass()
Returns the type of
SCMSourceContext that this SCMSourceTrait is applicable to. |
Modifier and Type | Method and Description |
---|---|
void |
SCMSourceTrait.applyToContext(SCMSourceContext<?,?> context)
Applies this trait to the
SCMSourceContext . |
protected void |
SCMSourceTrait.decorateContext(SCMSourceContext<?,?> context)
SPI: Override this method to decorate a
SCMSourceContext . |
boolean |
SCMSourceTraitDescriptor.isApplicableToContext(SCMSourceContext context)
Checks if the
SCMSourceTrait is relevant to the specified SCMSourceContext . |
Modifier and Type | Method and Description |
---|---|
static List<SCMSourceTraitDescriptor> |
SCMSourceTrait._for(Class<? extends SCMSourceContext> contextClass,
Class<? extends SCMBuilder> builderClass)
Returns the subset of
SCMSourceTraitDescriptor instances that are applicable to the specified types
of SCMSourceContext and SCMSourceBuilder . |
static List<SCMSourceTraitDescriptor> |
SCMSourceTrait._for(SCMSourceDescriptor scmSource,
Class<? extends SCMSourceContext> contextClass,
Class<? extends SCMBuilder> builderClass)
Returns the subset of
SCMSourceTraitDescriptor instances that are applicable to the specified
SCMSourceDescriptor and specified types of SCMNavigatorContext and SCMSourceBuilder . |
boolean |
SCMSourceTraitDescriptor.isApplicableToContext(Class<? extends SCMSourceContext> contextClass)
Checks if the
SCMSourceTrait is relevant to the specified type of SCMSourceContext . |
Constructor and Description |
---|
SCMSourceRequest(SCMSource source,
SCMSourceContext<?,?> context,
TaskListener listener)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
WildcardSCMHeadFilterTrait.decorateContext(SCMSourceContext<?,?> context)
SPI: Override this method to decorate a
SCMSourceContext . |
protected void |
RegexSCMHeadFilterTrait.decorateContext(SCMSourceContext<?,?> context)
SPI: Override this method to decorate a
SCMSourceContext . |
Copyright © 2016–2022. All rights reserved.