T
- The bean typepublic interface CreatedBean<T> extends Closeable, 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 AutoCloseable
close
in interface Closeable
BeanDestructionException
- If an error occurs closing the created bean.