Package jenkins.scm.api.trait
An API/SPI to allow the sharing of common traits between different
SCMSource
and
SCMNavigator
implementations.- Since:
- 2.2.0
-
Interface Summary Interface Description SCMNavigatorRequest.AttributeLambda A lambda that will create the map of attributes for a specific project name.SCMNavigatorRequest.SourceLambda A lambda that will create theSCMSource
instance for a specific project name.SCMNavigatorRequest.Witness Callback lambda to track the results ofSCMNavigatorRequest.process(String, SourceLambda, AttributeLambda, Witness...)
orSCMNavigatorRequest.process(String, List, List, Witness...)
SCMSourceRequest.IntermediateLambda<I> A lambda that produces an intermediate summary used to drive creation of theSCMSourceCriteria.Probe
andSCMRevision
instances.SCMSourceRequest.LazyRevisionLambda<H extends SCMHead,R extends SCMRevision,I> A lambda that will create theSCMRevision
instance for a specificSCMHead
using the intermediate value produced by aSCMSourceRequest.IntermediateLambda
.SCMSourceRequest.ProbeLambda<H extends SCMHead,I> A lambda that will create aSCMSourceCriteria.Probe
(ideally aSCMProbe
but for legacy code migration we useSCMSourceCriteria.Probe
) for a specifiedSCMHead
and either aSCMRevision
or some other type created by aSCMSourceRequest.IntermediateLambda
.SCMSourceRequest.RevisionLambda<H extends SCMHead,R extends SCMRevision> A lambda that will create theSCMRevision
instance for a specificSCMHead
.SCMSourceRequest.Witness<H extends SCMHead,R extends SCMRevision> Callback lambda to track the results ofSCMSourceRequest.process(SCMHead, IntermediateLambda, ProbeLambda, LazyRevisionLambda, Witness[])
-
Class Summary Class Description SCMBuilder<B extends SCMBuilder<B,S>,S extends SCM> Builder for aSCM
instance.SCMHeadAuthority<S extends SCMSourceRequest,H extends SCMHeadMixin,R extends SCMRevision> Abstraction to allow pluggable definitions of trust forSCMHead
andSCMRevision
instances in the context of a specificSCMSourceRequest
.SCMHeadAuthorityDescriptor Descriptor
base class forSCMHeadAuthority
implementations.SCMHeadFilter ASCMSourceRequest
dependent filter ofSCMHead
instances.SCMHeadPrefilter ASCMSourceRequest
independent filter ofSCMHead
instances.SCMNavigatorContext<C extends SCMNavigatorContext<C,R>,R extends SCMNavigatorRequest> Represents the context within which aSCMNavigator
is processing requests.SCMNavigatorRequest Represents the context of an individual request for a call toSCMNavigator.visitSources(SCMSourceObserver)
or an equivalent method.SCMNavigatorTrait Represents a trait of behaviour or configuration that can be applied to aSCMSource
.SCMNavigatorTraitDescriptor Abstract base class forDescriptor
ofSCMNavigatorTrait
implementations.SCMSourceBuilder<B extends SCMSourceBuilder<B,S>,S extends SCMSource> Builder for aSCMSource
instance.SCMSourceContext<C extends SCMSourceContext<C,R>,R extends SCMSourceRequest> Represents the context within which aSCMSource
is processing requests.SCMSourceDecorator<B extends SCMSourceBuilder<B,S>,S extends SCMSource> A contextual decorator ofSCMSourceBuilder
instances that can be used by aSCMNavigatorTrait
for example to applySCMSourceTrait
s to a subset of projects.SCMSourceFilter ASCMNavigatorRequest
dependent filter of project names.SCMSourcePrefilter ASCMNavigatorRequest
independent filter of project names.SCMSourceRequest Represents the context of an individual request for a call toSCMSource.retrieve(SCMSourceCriteria, SCMHeadObserver, SCMHeadEvent, TaskListener)
or an equivalent method.SCMSourceTrait Represents a trait of behaviour or configuration that can be applied to aSCMSource
.SCMSourceTraitDescriptor Abstract base class forDescriptor
ofSCMSourceTrait
implementations.SCMTrait<T extends SCMTrait<T>> Base class for common traits.SCMTraitDescriptor<T extends SCMTrait<T>> Abstract base class forDescriptor
ofSCMTrait
implementations.