Class DescribableServiceUtil


  • public class DescribableServiceUtil
    extends java.lang.Object
    DescribableServiceUtil provides utility methods for use by DescribableService implementations.
    • Constructor Detail

      • DescribableServiceUtil

        public DescribableServiceUtil()
    • Method Detail

      • listDescriptions

        public static <T> java.util.List<Description> listDescriptions​(ProviderService<T> service,
                                                                       boolean includeFieldProperties)
      • loadDescriptionForType

        public static <T> Description loadDescriptionForType​(ProviderService<T> service,
                                                             java.lang.String name,
                                                             boolean includeFieldProperties)
      • descriptionForProvider

        public static Description descriptionForProvider​(boolean includeFieldProperties,
                                                         java.lang.Object providerForType)
        Get or build the description of a plugin instance of a given type
        Parameters:
        includeFieldProperties - true to include introspected field properties
        providerForType - plugin instance
        Returns:
        description, or null