T - The bean typepublic interface BeanCreationContext<T>
CustomScope instances for creating new beans.| Modifier and Type | Method and Description | 
|---|---|
CreatedBean<T> | 
create()
Create a new instance. 
 | 
BeanDefinition<T> | 
definition()  | 
BeanIdentifier | 
id()  | 
@NonNull BeanDefinition<T> definition()
@NonNull BeanIdentifier id()
@NonNull CreatedBean<T> create() throws BeanCreationException
Implementations of CustomScope should call CreatedBean.close() to dispose of the bean
 at the appropriate moment in the lifecycle of the scope
CreatedBean instanceBeanCreationException - If the bean failed to create