T
- the value typeServiceBuilder.requires(org.jboss.msc.service.ServiceName)
method instead. This class will be removed in a future release.@Deprecated public final class DefaultValue<T> extends Object implements Value<T>
null
, a default value will be returned in its place.Constructor and Description |
---|
DefaultValue(Value<T> value,
Value<? extends T> defaultValue)
Deprecated.
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
T |
getValue()
Deprecated.
Get the actual dependency value.
|
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.Copyright © 2019 JBoss by Red Hat. All rights reserved.