Class NotificationStrategyFactory
- java.lang.Object
-
- org.neotropic.kuwaiba.core.notifications.strategies.NotificationStrategyFactory
-
@Component public class NotificationStrategyFactory extends Object
- Author:
- Lina Sofia Cardona Martinez <lina.cardona@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description NotificationStrategyFactory(TranslationService ts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationStrategyInterface
getNotificationStrategy(NotificationType type)
Sets the type of notification strategy to use according to the type of notification.
-
-
-
Constructor Detail
-
NotificationStrategyFactory
public NotificationStrategyFactory(TranslationService ts)
-
-
Method Detail
-
getNotificationStrategy
public NotificationStrategyInterface getNotificationStrategy(NotificationType type) throws NotificationTypeException
Sets the type of notification strategy to use according to the type of notification.- Parameters:
type
- notification type- Returns:
- the notification strategy to be used
- Throws:
NotificationTypeException
- Exception thrown if notification type does not exist
-
-