GraphQL vs REST

What is transaction propagation?

Sometimes spring bean might need access to different resource like ApplicationContext, BeanFactory. Spring Framework provides a set of interfaces that can help spring bean to get access of required resource.

Different types of Propagation

1. Required

  • setBeanName makes bean aware of its name defined in container (Application Context). :heart:

:red_car:

:star:

simple trick to remember

Propagation TypeDetailsWife Type
RequiredSmart Wife
SupportTrueSupportive Wife
MandatoryFalseGreedy Wife
NeverFalseStupid Wife
Not_SupportedFalseWife
Requires_NewFalseWife