T
- the value typepublic final class ConstructedValue<T> extends Object implements Value<T>
getValue()
will create a new instance,
so if the same instance should be returned, this should be used in conjunction with CachedValue
.Constructor and Description |
---|
ConstructedValue(Constructor<T> constructor,
List<? extends Value<?>> parameters)
Construct a new instance.
|
public ConstructedValue(Constructor<T> constructor, List<? extends Value<?>> parameters)
constructor
- the constructor to useparameters
- the parameters to pass to the constructorpublic T getValue() throws IllegalStateException
getValue
in interface Value<T>
IllegalStateException
- if the value is time-sensitive and the current state does not allow retrieval.Copyright © 2018 JBoss by Red Hat. All rights reserved.