Class GerritJcascConfigurator.ServerConfigurator

  • All Implemented Interfaces:
    io.jenkins.plugins.casc.Configurator<GerritServer>
    Enclosing class:
    GerritJcascConfigurator

    @Extension(optional=true)
    public static final class GerritJcascConfigurator.ServerConfigurator
    extends io.jenkins.plugins.casc.BaseConfigurator<GerritServer>
    Inject `config` field explicitly as BaseConfigurator cannot detect this ("type is abstract but not Describable"). The methods are using interface, but we have to point the `config` property to concrete class.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.jenkins.plugins.casc.BaseConfigurator

        io.jenkins.plugins.casc.BaseConfigurator.TypePair
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Set<io.jenkins.plugins.casc.Attribute<GerritServer,​?>> describe()  
      Class<GerritServer> getTarget()  
      protected GerritServer instance​(io.jenkins.plugins.casc.model.Mapping mapping, io.jenkins.plugins.casc.ConfigurationContext context)  
      • Methods inherited from class io.jenkins.plugins.casc.BaseConfigurator

        check, compare, configure, configure, createAttribute, equals, exclusions, handleUnknown, hashCode
      • Methods inherited from interface io.jenkins.plugins.casc.Configurator

        canConfigure, describe, describeStructure, getAttributes, getConfigurators, getDisplayName, getImplementedAPI, getName, getNames
    • Constructor Detail

      • ServerConfigurator

        public ServerConfigurator()
    • Method Detail

      • instance

        protected GerritServer instance​(io.jenkins.plugins.casc.model.Mapping mapping,
                                        io.jenkins.plugins.casc.ConfigurationContext context)
        Specified by:
        instance in class io.jenkins.plugins.casc.BaseConfigurator<GerritServer>
      • describe

        public Set<io.jenkins.plugins.casc.Attribute<GerritServer,​?>> describe()
        Specified by:
        describe in interface io.jenkins.plugins.casc.Configurator<GerritServer>
        Overrides:
        describe in class io.jenkins.plugins.casc.BaseConfigurator<GerritServer>