Package org.jboss.msc.value
Interface Value<T>
-
- Type Parameters:
T- the value type
- All Known Subinterfaces:
Dependency,Service<T>,ServiceController<S>
- All Known Implementing Classes:
AbstractService,CachedValue,CheckedValue,ClassOfValue,ConstructedValue,DefaultValue,EnvironmentPropertyValue,FieldValue,ImmediateValue,InjectedSetValue,InjectedValue,ListItemValue,ListValue,MapEntryValue,MapItemValue,MapValue,MethodValue,NullService,OptionalDependency,ReferenceValue,ServiceControllerImpl,ServiceRegistrationImpl,SetValue,SystemPropertyValue,ThreadLocalValue,ValueInjectionService,ValueService
public interface Value<T>An indirect value. A value may be available trivially (without any computation), or it may involve a complex calculation to produce. The value may also be time-sensitive, such that it is only available under certain circumstances (e.g. when the corresponding service is "up").
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetValue()Get the actual value.
-
-
-
Method Detail
-
getValue
T getValue() throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
Get the actual value.- Returns:
- the actual value
- Throws:
java.lang.IllegalStateException- if the value is time-sensitive and the current state does not allow retrieval.java.lang.IllegalArgumentException- when the value cannot be read due to misconfiguration
-
-