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>
@Deprecated public final class ConstructedValue<T> extends Object implements Value<T>
Deprecated.UseServiceBuilder.requires(org.jboss.msc.service.ServiceName)
method instead. This class will be removed in a future release.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
.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description ConstructedValue(Constructor<T> constructor, List<? extends Value<?>> parameters)
Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description T
getValue()
Deprecated.Get the actual dependency value.
-
-
-
Constructor Detail
-
ConstructedValue
public ConstructedValue(Constructor<T> constructor, List<? extends Value<?>> parameters)
Deprecated.Construct a new instance.- Parameters:
constructor
- the constructor to useparameters
- the parameters to pass to the constructor
-
-
Method Detail
-
getValue
public T getValue() throws IllegalStateException
Deprecated.Get the actual dependency value.- Specified by:
getValue
in interfaceValue<T>
- Returns:
- the actual dependency value
- Throws:
IllegalStateException
- if the value is time-sensitive and the current state does not allow retrieval.
-
-