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() |
| Modifier and Type | Method and Description |
|---|---|
Optional<T> |
getOptionalValue()
Returns the optional value, which is only defined if a value was injected.
|
T |
getValue() |
Copyright © 2018 JBoss by Red Hat. All rights reserved.