public class DependentProvider<T> extends Object implements javax.inject.Provider<T>, Serializable
Provider
for @Dependent scoped contextual instances. We need this to be able to properly clean them up
when they are not needed anymore via the destroy()
method.
Instances of this class can be retrieved using the BeanProvider
.
Instances of this class are Serializable if the wrapped contextual instance is Serializable.Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method will properly destroy the @Dependent scoped instance.
|
T |
get() |
Copyright © 2020 The Apache Software Foundation. All rights reserved.