A simple and extensible Notification System built using the Spring Framework (Core / Annotation-based configuration). This project demonstrates how to implement the Factory Design Pattern with Spring Dependency Injection to send notifications via multiple channels like Email, SMS, and Push.
- Send notifications via Email, SMS, and Push Notification
- Uses Spring Annotation Configuration
- Implements Factory Design Pattern
- Easily extensible for new notification types
- Loose coupling using interfaces
com.nit β βββ config β βββ AppConfig.java β βββ main β βββ NotificationApp.java β βββ sbeans βββ Notification.java βββ EmailNotification.java βββ SMSNotification.java βββ PushNotification.java βββ NotificationFactory.java
- Java
- Spring Core (IOC Container)
- Annotation-based Configuration
Factory Pattern: The NotificationFactory class dynamically returns the required notification object based on user input.
@Configuration
@ComponentScan(basePackages="com.nit.sbeans")
public class AppConfig {
}