Class NotifierUtils
- java.lang.Object
-
- fish.payara.internal.notification.NotifierUtils
-
public final class NotifierUtils extends Object
A collection of static methods used by notification sources.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
convertToCamelCase(String string)
static <C extends PayaraNotifierConfiguration>
Class<C>getConfigurationClass(Class<?> notifierClass)
static String
getNotifierName(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
static Set<String>
getNotifierNames(org.glassfish.hk2.api.ServiceLocator serviceLocator)
List the names of all registered notifiers
-
-
-
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 PayaraNotifierConfiguration> Class<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
-
-