T - public static interface WeldInstance.Handler<T> extends AutoCloseable
Allows to inspect the metadata of the relevant bean and also to destroy the underlying contextual instance.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Delegates to
destroy(). |
void |
destroy()
Destroy the contextual instance.
|
T |
get()
The contextual reference is obtained lazily, i.e.
|
Bean<?> |
getBean() |
T get()
IllegalStateException - If the producing WeldInstance does not existProvider.get()Bean<?> getBean()
void destroy()
WeldInstance does not existget() was never calledInstance.destroy(Object)void close()
destroy().close in interface AutoCloseableCopyright © 2019 JBoss by Red Hat. All rights reserved.