InstantiationAwareBeanPostProcessor interface,
adding a callback for predicting the eventual type of a processed bean.Note
This interface is a special purpose interface, mainly for
internal use within the framework. In general, application-provided
post-processors should simply implement the plain BeanPostProcessor
interface.
| Modifier and Type | Method and Description |
|---|---|
| public default Class | Returns: the type of the bean (nevernull)the raw class of the bean beanClass, String the name of the bean beanName)Determine the type of the bean to be eventually returned from this
processor's |
| public default Constructor | Returns: the candidate constructors, ornull if none specifiedthe raw class of the bean (never beanClass, String null)the name of the bean beanName)Determine the candidate constructors to use for the given bean. |
| public default Object | Returns: the object to expose as bean reference (typically with the passed-in bean instance as default)the raw bean instance bean, String the name of the bean beanName)Obtain a reference for early access to the specified bean, typically for the purpose of resolving a circular reference. |
| public default Class | Returns: the type of the bean, ornull if not predictablethe raw class of the bean beanClass, String the name of the bean beanName)Predict the type of the bean to be eventually returned from this
processor's |
| determineBeanType | back to summary |
|---|---|
| public default Class Determine the type of the bean to be eventually returned from this
processor's The default implementation returns the given bean class as-is. Specific implementations should fully evaluate their processing steps in order to create/initialize a potential proxy class upfront.
| |
| determineCandidateConstructors | back to summary |
|---|---|
| public default Constructor Determine the candidate constructors to use for the given bean. The default implementation returns
| |
| getEarlyBeanReference | back to summary |
|---|---|
| public default Object getEarlyBeanReference(Object bean, String beanName) throws BeansException Obtain a reference for early access to the specified bean, typically for the purpose of resolving a circular reference. This callback gives post-processors a chance to expose a wrapper
early - that is, before the target bean instance is fully initialized.
The exposed object should be equivalent to the what
The default implementation returns the given
| |
| predictBeanType | back to summary |
|---|---|
| public default Class Predict the type of the bean to be eventually returned from this
processor's The default implementation returns
| |