Class DomainRequirementProvider

    • Constructor Detail

      • DomainRequirementProvider

        public DomainRequirementProvider()
    • Method Detail

      • provide

        protected abstract <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.
      • lookupRequirements

        public static <T extends com.cloudbees.plugins.credentials.domains.DomainRequirement> List<T> lookupRequirements​(Class<T> type)
        The the entrypoint for requirement gathering, this static method delegates to any registered providers to provide their set of discoverable requirements.
      • of

        @Nullable
        public static <T extends com.cloudbees.plugins.credentials.domains.DomainRequirement> T of​(Class<?> type,
                                                                                                   Class<T> requirementType)
        This is called by implementations of provide() to instantiate the class specified by an actual attribute, if present. It returns null otherwise.