Class NotifierUtils


  • public final class NotifierUtils
    extends Object
    A collection of static methods used by notification sources.
    • Method Detail

      • getNotifierName

        public static final String getNotifierName​(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
        Parameters:
        descriptor - the HK2 service descriptor for the notifier
        Returns:
        a string name representing the notifier
      • getNotifierNames

        public static final Set<String> getNotifierNames​(org.glassfish.hk2.api.ServiceLocator serviceLocator)
        List the names of all registered notifiers
        Parameters:
        serviceLocator - the service locator to use to find the notifiers
        Returns:
        a set of all notifier names
        See Also:
        getNotifierName(ActiveDescriptor)
      • getConfigurationClass

        public static <C extends PayaraNotifierConfigurationClass<C> getConfigurationClass​(Class<?> notifierClass)
        Type Parameters:
        C - a generic class of the notifier configuration class
        Parameters:
        notifierClass - the notifier of the class
        Returns:
        the class used to configure the configured notifier
      • convertToCamelCase

        public static String convertToCamelCase​(String string)
        Returns:
        a camel cased string representing the result