public interface BeanCreationContext
Definition of a context object storing all required information for the creation of a bean.
 An object implementing this interface is passed to a BeanFactory. The
 interface also contains methods for the creation and initialization of nested
 beans (e.g. constructor arguments or complex properties of the bean to be
 created).
 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
createBean(BeanDeclaration data)
Creates a bean based on the given  
BeanDeclaration. | 
Class<?> | 
getBeanClass()
Returns the class of the bean to be created. 
 | 
BeanDeclaration | 
getBeanDeclaration()
Returns the  
BeanDeclaration with the data for the new bean. | 
Object | 
getParameter()
Returns the (optional) parameter object for the bean factory. 
 | 
void | 
initBean(Object bean,
        BeanDeclaration data)
Initializes a bean's property based on the given  
BeanDeclaration. | 
Class<?> getBeanClass()
BeanDeclaration getBeanDeclaration()
BeanDeclaration with the data for the new bean. This
 data is used to initialize the bean's properties.BeanDeclaration defining the bean to be createdObject getParameter()
BeanFactory.void initBean(Object bean, BeanDeclaration data)
BeanDeclaration.bean - the bean to be initializeddata - the BeanDeclaration with initialization data for this
        beanObject createBean(BeanDeclaration data)
BeanDeclaration. This method
 can be used to create dependent beans needed for the initialization of
 the bean that is actually created.data - the BeanDeclaration describing the beanCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.