spring-beans

org.springframework.beans.factory
Interface Aware

All Known Subinterfaces:
BeanClassLoaderAware, BeanFactoryAware, BeanNameAware
All Known Implementing Classes:
AbstractFactoryBean, AbstractServiceLoaderBasedFactoryBean, AutowiredAnnotationBeanPostProcessor, BeanConfigurerSupport, BeanReferenceFactoryBean, CustomAutowireConfigurer, CustomEditorConfigurer, CustomScopeConfigurer, FieldRetrievingFactoryBean, ListFactoryBean, MapFactoryBean, MethodInvokingFactoryBean, ObjectFactoryCreatingFactoryBean, PlaceholderConfigurerSupport, PreferencesPlaceholderConfigurer, PropertyPathFactoryBean, PropertyPlaceholderConfigurer, ProviderCreatingFactoryBean, QualifierAnnotationAutowireCandidateResolver, RequiredAnnotationBeanPostProcessor, ServiceFactoryBean, ServiceListFactoryBean, ServiceLoaderFactoryBean, ServiceLocatorFactoryBean, SetFactoryBean

public interface Aware

Marker superinterface indicating that a bean is eligible to be notified by the Spring container of a particular framework object through a callback-style method. Actual method signature is determined by individual subinterfaces, but should typically consist of just one void-returning method that accepts a single argument.

Note that merely implementing Aware provides no default functionality. Rather, processing must be done explicitly, for example in a BeanPostProcessor. Refer to org.springframework.context.support.ApplicationContextAwareProcessor and AbstractAutowireCapableBeanFactory for examples of processing *Aware interface callbacks.

Since:
3.1
Author:
Chris Beams


spring-beans