Package com.atlassian.bamboo.utils
Class BambooNotificationUtils
java.lang.Object
com.atlassian.bamboo.utils.BambooNotificationUtils
Utility methods for working with
notifications.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Notification>
TcreateNotification(@NotNull Class<T> notificationClass) Creates new instance of aNotification.
-
Constructor Details
-
BambooNotificationUtils
public BambooNotificationUtils()
-
-
Method Details
-
createNotification
@NotNull public static <T extends Notification> T createNotification(@NotNull @NotNull Class<T> notificationClass) Creates new instance of aNotification. The newly created object is a fully initialized Spring component, with all dependencies injected.- Type Parameters:
T- type of the notification- Parameters:
notificationClass- class of the notification- Returns:
- new notification instance
-