Class DescribableDomainRequirementProvider

java.lang.Object
com.google.jenkins.plugins.credentials.domains.DomainRequirementProvider
com.google.jenkins.plugins.credentials.domains.DescribableDomainRequirementProvider
All Implemented Interfaces:
ExtensionPoint

@Extension public class DescribableDomainRequirementProvider extends DomainRequirementProvider
This implementation of DomainRequirementProvider implements support for discovering DomainRequirements annotated on Describable classes by walking the Descriptors registered with Jenkins. TODO(mattmoor): should we allow the annotation on the descriptor itself?
  • Constructor Details

    • DescribableDomainRequirementProvider

      public DescribableDomainRequirementProvider()
  • Method Details

    • provide

      protected <T extends com.cloudbees.plugins.credentials.domains.DomainRequirement> List<T> provide(Class<T> type)
      This hook is intended for providers to implement such that they can surface custom class-discovery logic, on which they will call of() to instantiate the elements returned.
      Specified by:
      provide in class DomainRequirementProvider