Package com.atlassian.bamboo.utils
Class BambooNotificationUtils
- java.lang.Object
-
- com.atlassian.bamboo.utils.BambooNotificationUtils
-
public class BambooNotificationUtils extends Object
Utility methods for working withnotifications
.
-
-
Constructor Summary
Constructors Constructor Description BambooNotificationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Notification>
TcreateNotification(@NotNull Class<T> notificationClass)
Creates new instance of aNotification
.
-
-
-
Method Detail
-
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
-
-