Spring Framework: About Aware suffix interface

Following discussion is based on source code of Spring Framework 6.1.8.

Some commonly used Spring Framework components can be injected into your bean during bean creation.

Commonly used Aware interface

Interface name
Information interes…


This content originally appeared on DEV Community and was authored by Salad Lam

Following discussion is based on source code of Spring Framework 6.1.8.

Some commonly used Spring Framework components can be injected into your bean during bean creation.

Commonly used Aware interface

Interface name Information interested Injected by
org.springframework.context.ApplicationEventPublisherAware ApplicationEventPublisher org.springframework.context.support.ApplicationContextAwareProcessor#invokeAwareInterfaces
org.springframework.context.MessageSourceAware MessageSource org.springframework.context.support.ApplicationContextAwareProcessor#invokeAwareInterfaces
org.springframework.context.EnvironmentAware Environment org.springframework.context.support.ApplicationContextAwareProcessor#invokeAwareInterfaces
org.springframework.beans.factory.BeanNameAware Bean name org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory#invokeAwareMethods
org.springframework.beans.factory.BeanFactoryAware BeanFactory org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory#invokeAwareMethods
org.springframework.context.ApplicationContextAware ApplicationContext org.springframework.context.support.ApplicationContextAwareProcessor#invokeAwareInterfaces


This content originally appeared on DEV Community and was authored by Salad Lam


Print Share Comment Cite Upload Translate Updates
APA

Salad Lam | Sciencx (2024-06-16T15:54:07+00:00) Spring Framework: About Aware suffix interface. Retrieved from https://www.scien.cx/2024/06/16/spring-framework-about-aware-suffix-interface/

MLA
" » Spring Framework: About Aware suffix interface." Salad Lam | Sciencx - Sunday June 16, 2024, https://www.scien.cx/2024/06/16/spring-framework-about-aware-suffix-interface/
HARVARD
Salad Lam | Sciencx Sunday June 16, 2024 » Spring Framework: About Aware suffix interface., viewed ,<https://www.scien.cx/2024/06/16/spring-framework-about-aware-suffix-interface/>
VANCOUVER
Salad Lam | Sciencx - » Spring Framework: About Aware suffix interface. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/06/16/spring-framework-about-aware-suffix-interface/
CHICAGO
" » Spring Framework: About Aware suffix interface." Salad Lam | Sciencx - Accessed . https://www.scien.cx/2024/06/16/spring-framework-about-aware-suffix-interface/
IEEE
" » Spring Framework: About Aware suffix interface." Salad Lam | Sciencx [Online]. Available: https://www.scien.cx/2024/06/16/spring-framework-about-aware-suffix-interface/. [Accessed: ]
rf:citation
» Spring Framework: About Aware suffix interface | Salad Lam | Sciencx | https://www.scien.cx/2024/06/16/spring-framework-about-aware-suffix-interface/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.