T - public static interface WeldInstance.Handler<T> extends AutoCloseable
Holds the contextual reference, 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() |
Bean<?> |
getBean() |
T get()
Provider.get()Bean<?> getBean()
void destroy()
It's a no-op if called multiple times or if the producing WeldInstance is destroyed already.
Instance.destroy(Object)void close()
destroy().close in interface AutoCloseableCopyright © 2017 JBoss by Red Hat. All rights reserved.