Clarified role of postProcessAfterInstantiation
Issue: SPR-15732
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -76,9 +76,8 @@ public interface InstantiationAwareBeanPostProcessor extends BeanPostProcessor {
|
||||
/**
|
||||
* Perform operations after the bean has been instantiated, via a constructor or factory method,
|
||||
* but before Spring property population (from explicit properties or autowiring) occurs.
|
||||
* <p>This is the ideal callback for performing field injection on the given bean instance.
|
||||
* See Spring's own {@link org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor}
|
||||
* for a typical example.
|
||||
* <p>This is the ideal callback for performing custom field injection on the given bean
|
||||
* instance, right before Spring's autowiring kicks in.
|
||||
* <p>The default implementation returns {@code true}.
|
||||
* @param bean the bean instance created, with properties not having been set yet
|
||||
* @param beanName the name of the bean
|
||||
|
||||
Reference in New Issue
Block a user