JBoss Modular Service Kernel API 1.0.0.CR2

org.jboss.msc.value
Interface Value<T>

Type Parameters:
T - the value type
All Known Subinterfaces:
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, ProviderValue, ReferenceValue, 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").

Author:
David M. Lloyd

Method Summary
 T getValue()
          Get the actual value.
 

Method Detail

getValue

T getValue()
           throws IllegalStateException,
                  IllegalArgumentException
Get the actual value.

Returns:
the actual 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

JBoss Modular Service Kernel API 1.0.0.CR2

Copyright © 2011 JBoss, a division of Red Hat, Inc.