Package org.jboss.msc.value
Interface Value<T>
-
- Type Parameters:
T
- referenced dependency value type
- All Known Subinterfaces:
Service<T>
,ServiceController<S>
- All Known Implementing Classes:
AbstractService
,CachedValue
,CheckedValue
,ClassOfValue
,ConstructedValue
,DefaultValue
,DelegatingServiceController
,EnvironmentPropertyValue
,FieldValue
,ImmediateValue
,InjectedSetValue
,InjectedValue
,ListItemValue
,ListValue
,MapEntryValue
,MapItemValue
,MapValue
,MethodValue
,ReferenceValue
,SetValue
,SystemPropertyValue
,ThreadLocalValue
,ValueInjectionService
,ValueService
@Deprecated public interface Value<T>
Deprecated.UseServiceBuilder.requires(org.jboss.msc.service.ServiceName)
method instead. This class will be removed in a future release.Reference to a readonly dependency value. User code should never store referenced value in global fields and should always usegetValue()
method instead.Implementations of this interface are thread safe.
- Author:
- David M. Lloyd, Richard Opalka
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description T
getValue()
Deprecated.Get the actual dependency value.
-
-
-
Method Detail
-
getValue
T getValue() throws IllegalStateException, IllegalArgumentException
Deprecated.Get the actual dependency value.- Returns:
- the actual dependency value
- Throws:
IllegalStateException
- if the value is time-sensitive and the current state does not allow retrieval.IllegalArgumentException
- when the value cannot be read due to misconfiguration
-
-