T - This must be the type of entity for which this is a factory.public final class ParamValueFactoryWithSource<T>
extends java.lang.Object
implements org.glassfish.hk2.api.Factory<T>
Factory interface with
Parameter.Source information.| Modifier and Type | Field and Description |
|---|---|
private org.glassfish.hk2.api.Factory<T> |
factory |
private Parameter.Source |
parameterSource |
| Constructor and Description |
|---|
ParamValueFactoryWithSource(org.glassfish.hk2.api.Factory<T> factory,
Parameter.Source parameterSource)
Wrap provided param factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(T t) |
Parameter.Source |
getSource()
Returns
Parameter.Source
which closely determines a function of the given factory. |
T |
provide() |
private final org.glassfish.hk2.api.Factory<T> factory
private final Parameter.Source parameterSource
public ParamValueFactoryWithSource(org.glassfish.hk2.api.Factory<T> factory, Parameter.Source parameterSource)
factory - param factory to be wrapped.parameterSource - param source.public void dispose(T t)
dispose in interface org.glassfish.hk2.api.Factory<T>public Parameter.Source getSource()
Parameter.Source
which closely determines a function of the given factory.