Class SCMHeadOrigin

  • All Implemented Interfaces:
    Direct Known Subclasses:
    SCMHeadOrigin.Default, SCMHeadOrigin.Fork

    public abstract class SCMHeadOrigin
    extends Object
    implements Serializable
    Represents the origin of a SCMHead.
    • For centralized version control systems, this will always be DEFAULT
    • For distributed version control systems, the distributed nature allows for other origins. It is expected that SCMSource implementations that support SCMHead instances coming from a different origin will solve the problem of describing the alternative origins by subclassing SCMHeadOrigin appropriately (assuming SCMHeadOrigin.Fork is not applicable).
    • For the centralized distributed version control systems such as GitHub, Bitbucket, etc there is a standard concept of a named SCMHeadOrigin.Fork.
    See Also:
    Serialized Form