Pipeline

open class Pipeline<TSubject : Any, TContext : Any>(phases: PipelinePhase)(source)

Since

1.3.4

Inheritors

Constructors

Link copied to clipboard
constructor(vararg phases: PipelinePhase)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private val phasesRaw: MutableList<Any>

Contains a list of PipelinePhase and PhaseContent.

Functions

Link copied to clipboard

Add phase to the end of phasesRaw.

Link copied to clipboard
open fun afterIntercepted()
Link copied to clipboard
Link copied to clipboard
private fun createContext(context: TContext, subject: TSubject): PipelineContext<TSubject, TContext>
Link copied to clipboard
internal fun execute(context: TContext, subject: TSubject): TSubject

Executes this pipeline in the given context and with the given subject.

Link copied to clipboard

Find phase matching phase in phasesRaw. If PhaseContent exists and its phase matches phase, return this object. If PipelinePhase and phase match, convert PipelinePhase to PhaseContent and return. Otherwise return empty.

Link copied to clipboard
private fun findPhaseIndex(phase: PipelinePhase): Int

Find index matching phase in phasesRaw. Returns the index if PhaseContent exists and its phase matches phase .If there is a matching PipelinePhase, return the index of the PipelinePhase. Otherwise return -1.

Link copied to clipboard
private fun hasPhase(phase: PipelinePhase): Boolean

Find phase matching phase in phasesRaw. Returns true if PhaseContent exists and its phase matches phase , Returns true if there is a matching PipelinePhase. Otherwise return false .

Link copied to clipboard

Insert phase as PhaseContent after the reference phase. If there are other phases inserted after reference, then phase will be inserted after them.

Link copied to clipboard

Inserts phase as PhaseContent before the reference phase.

Link copied to clipboard
private fun insertRelativePhase(fromPhaseOrContent: Any, fromPhase: PipelinePhase): Boolean
Link copied to clipboard

Adds block to the phase of this pipeline.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard