Sometimes, I find some class names including Aware such as ApplicationContextAware and MessageSourceAware (spring). Does this Aware have any special meanings or is it a famous rule?
Sometimes, I find some class names including Aware such as ApplicationContextAware and MessageSourceAware (spring).
Share
Those are not classes, are interfaces. The name is just a convention on Spring meaning that some special framework object is going to be injected to that class if it is managed by the framework.
Directly from the docs of ApplicationContextAware:
In this case, the bean that implements this interface will get a reference to the ApplicationContext managing the application.