Supplier
that can return null.@Deprecated public class OptionalInjectedValue<T> extends org.jboss.msc.inject.RetainingInjector<T> implements org.jboss.msc.value.Value<T>
InjectedValue
, but with support for returning an Optional
.Constructor and Description |
---|
OptionalInjectedValue()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Optional<T> |
getOptionalValue()
Deprecated.
Returns the optional value, which is only defined if a value was injected.
|
T |
getValue()
Deprecated.
|
Copyright © 2020 JBoss by Red Hat. All rights reserved.