T - The bean typepublic interface CreatedBean<T>
extends java.io.Closeable, java.lang.AutoCloseable
BeanCreationContext.BeanCreationContext, 
BeanCreationContext| Modifier and Type | Method and Description | 
|---|---|
| T | bean() | 
| void | close()Destroy the bean entry, performing any shutdown and releasing any dependent objects. | 
| BeanDefinition<T> | definition() | 
| BeanIdentifier | id()Returns an ID that is unique to the bean and can be used to cache the instance if necessary. | 
BeanDefinition<T> definition()
BeanIdentifier id()
void close()
    throws BeanDestructionException
close in interface java.lang.AutoCloseableclose in interface java.io.CloseableBeanDestructionException - If an error occurs closing the created bean.