Class EnumConfigurator<T extends Enum<T>>

    • Constructor Detail

      • EnumConfigurator

        public EnumConfigurator​(Class<T> clazz)
    • Method Detail

      • describe

        public Set<Attribute<T,​?>> describe()
        Description copied from interface: Configurator
        Determine the list of Attribute available for configuration of the managed component.
        Specified by:
        describe in interface Configurator<T extends Enum<T>>
        A set of Attributes that describes this object
      • configure

        public T configure​(CNode config,
                           ConfigurationContext context)
                    throws ConfiguratorException
        Description copied from interface: Configurator
        Configures/creates a Jenkins object based on a tree.
        Specified by:
        configure in interface Configurator<T extends Enum<T>>
        config - Map/List/primitive objects (think YAML) that represents the configuration from which a Jenkins object is configured.
        context - Fully configured Jenkins object used as the starting point for this configuration.
        Fully configured Jenkins object that results from this configuration. if no new objects got created, but some existing objects may have been modified, return updated target object.
        ConfiguratorException - if something went wrong, depends on the concrete implementation