|
JBoss Modular Service Kernel API 1.0.0.Beta6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.msc.value.ConstructedValue<T>
T
- the value typepublic final class ConstructedValue<T>
A value which is created on demand from a constructor. Each call to getValue()
will create a new instance,
so if the same instance should be returned, this should be used in conjunction with CachedValue
.
Constructor Summary | |
---|---|
ConstructedValue(Constructor<T> constructor,
List<? extends Value<?>> parameters)
Construct a new instance. |
|
ConstructedValue(Value<Constructor<T>> constructorValue,
List<? extends Value<?>> parameters)
Deprecated. Will be removed before 1.0.0.GA |
Method Summary | |
---|---|
T |
getValue()
Get the actual value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public ConstructedValue(Value<Constructor<T>> constructorValue, List<? extends Value<?>> parameters)
constructorValue
- the constructor to useparameters
- the parameters to pass to the constructorpublic ConstructedValue(Constructor<T> constructor, List<? extends Value<?>> parameters)
constructor
- the constructor to useparameters
- the parameters to pass to the constructorMethod Detail |
---|
public T getValue() throws IllegalStateException
getValue
in interface Value<T>
IllegalStateException
- if the value is time-sensitive and the current state does not allow retrieval.
|
JBoss Modular Service Kernel API 1.0.0.Beta6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |