Skip to content

DurgeshOnStack/FactoryDesignPattern01_Notification-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“’ Notification System using Spring Framework

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.


πŸš€ Features

  • 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

πŸ—οΈ Project Structure

com.nit β”‚ β”œβ”€β”€ config β”‚ └── AppConfig.java β”‚ β”œβ”€β”€ main β”‚ └── NotificationApp.java β”‚ └── sbeans β”œβ”€β”€ Notification.java β”œβ”€β”€ EmailNotification.java β”œβ”€β”€ SMSNotification.java β”œβ”€β”€ PushNotification.java └── NotificationFactory.java


βš™οΈ Technologies Used

  • Java
  • Spring Core (IOC Container)
  • Annotation-based Configuration

🧠 Design Pattern Used

Factory Pattern: The NotificationFactory class dynamically returns the required notification object based on user input.


πŸ“„ Core Components

Configuration Class

@Configuration
@ComponentScan(basePackages="com.nit.sbeans")
public class AppConfig {
}

About

A modular Spring-based notification system that uses the Factory Design Pattern and dependency injection to dynamically send messages via Email, SMS, and Push channels. It ensures scalability, loose coupling, and easy extension by simply adding new notification implementations without modifying existing code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages