How does Bridge pattern work with Spring Boot?
I am learning about the bridge Pattern using Spring boot and I’m using Chatgpt to help me with the process but I can’t understand how it knows when it needs to use EmailSender in EmailNotification and SmsSender in SmsNotification in the example it’s giving me. I get confused by the fact that both beans EmailSender and SmsSender are configured to return the Sender type plus EmailNotification and SmsNotification both also have the type Sender in their constructor.