Package org.jboss.msc.value
Class ConstructedValue<T>
- java.lang.Object
-
- org.jboss.msc.value.ConstructedValue<T>
-
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
Value<T>
public final class ConstructedValue<T> extends java.lang.Object implements Value<T>
A value which is created on demand from a constructor. Each call togetValue()
will create a new instance, so if the same instance should be returned, this should be used in conjunction withCachedValue
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.Constructor<T>
constructor
private java.util.List<? extends Value<?>>
parameters
-
Constructor Summary
Constructors Constructor Description ConstructedValue(java.lang.reflect.Constructor<T> constructor, java.util.List<? extends Value<?>> parameters)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getValue()
Get the actual value.
-