| Package | Description |
|---|---|
| org.jboss.msc.inject |
Classes which implement value injection.
|
| org.jboss.msc.service |
The service container implementation itself.
|
| org.jboss.msc.value |
Classes which implement various indirect value types.
|
| Modifier and Type | Field and Description |
|---|---|
private Value<?> |
MethodInjector.injectedValue |
private Value<?> |
AddMethodInjector.target |
private Value<C> |
AtomicReferenceFieldUpdaterInjector.target |
private Value<?> |
FieldInjector.target |
private Value<?> |
SetMethodInjector.target |
private Value<?> |
MethodInjector.targetValue |
private Value<T> |
RetainingInjector.value
The stored value.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<? extends Value<?>> |
MethodInjector.parameterList |
private static java.util.concurrent.atomic.AtomicReferenceFieldUpdater<RetainingInjector,Value> |
RetainingInjector.valueUpdater |
| Modifier and Type | Method and Description |
|---|---|
protected Value<T> |
RetainingInjector.getStoredValue()
Get the value object stored in this injector.
|
protected Value<T> |
RetainingInjector.setStoredValue(Value<T> value)
Set the value object stored in this injector (must not be
null). |
| Modifier and Type | Method and Description |
|---|---|
static <T> Injector<T> |
SetMethodInjector.create(Value<?> target,
java.lang.reflect.Method method)
Construct a new instance.
|
protected Value<T> |
RetainingInjector.setStoredValue(Value<T> value)
Set the value object stored in this injector (must not be
null). |
| Constructor and Description |
|---|
AddMethodInjector(Value<?> target,
java.lang.reflect.Method addMethod,
java.lang.reflect.Method removeMethod)
Construct a new instance.
|
AtomicReferenceFieldUpdaterInjector(java.util.concurrent.atomic.AtomicReferenceFieldUpdater<C,? super T> updater,
Value<C> target)
Construct a new instance.
|
FieldInjector(Value<?> target,
java.lang.reflect.Field field)
Construct a new instance.
|
MethodInjector(java.lang.reflect.Method method,
Value<?> targetValue,
Value<?> injectedValue,
java.util.List<? extends Value<?>> parameterList)
Construct a new instance.
|
MethodInjector(java.lang.reflect.Method method,
Value<?> targetValue,
Value<?> injectedValue,
java.util.List<? extends Value<?>> parameterList)
Construct a new instance.
|
SetMethodInjector(Value<?> target,
java.lang.reflect.Method method)
Construct a new instance.
|
| Constructor and Description |
|---|
MethodInjector(java.lang.reflect.Method method,
Value<?> targetValue,
Value<?> injectedValue,
java.util.List<? extends Value<?>> parameterList)
Construct a new instance.
|
| Modifier and Type | Interface and Description |
|---|---|
(package private) interface |
Dependency
AbstractDependency represents the dependencies of a service.
|
interface |
Service<T>
A service is a thing which can be started and stopped.
|
interface |
ServiceController<S>
A controller for a single service instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractService<T>
An abstract service class which provides default implementations.
|
(package private) class |
NullService |
(package private) class |
OptionalDependency
An OptionalDependency.
This class establishes a transitive dependency relationship between the dependent and the real dependency. |
(package private) class |
ServiceControllerImpl<S>
The service controller implementation.
|
(package private) class |
ServiceRegistrationImpl
A single service registration.
|
class |
ValueInjectionService<T>
A service which propagates a value from a dependency.
|
class |
ValueService<T>
A service which returns the provided value, which is evaluated once per service start.
|
| Modifier and Type | Field and Description |
|---|---|
static Value<Service<java.lang.Void>> |
Service.NULL_VALUE
A value which resolves to the
null service. |
private Value<? extends Service<T>> |
ServiceBuilderImpl.serviceValue |
private Value<? extends Service<S>> |
ServiceControllerImpl.serviceValue
The service itself.
|
private Value<? extends T> |
ValueInjection.source |
private Value<T> |
ValueService.value |
| Modifier and Type | Method and Description |
|---|---|
(package private) Value<? extends Service<T>> |
ServiceBuilderImpl.getServiceValue() |
Value<? extends T> |
ValueInjection.getSource()
Get the source value.
|
| Modifier and Type | Method and Description |
|---|---|
<I> ServiceBuilder<T> |
DelegatingServiceBuilder.addInjectionValue(Injector<? super I> target,
Value<I> value)
Add an injection value.
|
<I> ServiceBuilder<T> |
ServiceBuilder.addInjectionValue(Injector<? super I> target,
Value<I> value)
Add an injection value.
|
<I> ServiceBuilder<T> |
ServiceBuilderImpl.addInjectionValue(Injector<? super I> target,
Value<I> value) |
<T> ServiceBuilder<T> |
DelegatingServiceContainer.addServiceValue(ServiceName name,
Value<? extends Service<T>> value)
Get a builder which can be used to add a service to this target.
|
<T> ServiceBuilder<T> |
DelegatingServiceTarget.addServiceValue(ServiceName name,
Value<? extends Service<T>> value)
Get a builder which can be used to add a service to this target.
|
<T> ServiceBuilder<T> |
ServiceTarget.addServiceValue(ServiceName name,
Value<? extends Service<T>> value)
Get a builder which can be used to add a service to this target.
|
<T> ServiceBuilder<T> |
ServiceTargetImpl.addServiceValue(ServiceName name,
Value<? extends Service<T>> value) |
protected <T> ServiceBuilder<T> |
ServiceControllerImpl.ChildServiceTarget.createServiceBuilder(ServiceName name,
Value<? extends Service<T>> value,
ServiceControllerImpl<?> parent) |
protected <T> ServiceBuilder<T> |
ServiceTargetImpl.createServiceBuilder(ServiceName name,
Value<? extends Service<T>> value,
ServiceControllerImpl<?> parent) |
| Constructor and Description |
|---|
ServiceBuilderImpl(ServiceTargetImpl serviceTarget,
Value<? extends Service<T>> serviceValue,
ServiceName serviceName,
ServiceControllerImpl<?> parent) |
ServiceControllerImpl(Value<? extends Service<S>> serviceValue,
Dependency[] dependencies,
ValueInjection<?>[] injections,
ValueInjection<?>[] outInjections,
ServiceRegistrationImpl primaryRegistration,
ServiceRegistrationImpl[] aliasRegistrations,
java.util.Set<StabilityMonitor> monitors,
java.util.Set<? extends ServiceListener<? super S>> listeners,
ServiceControllerImpl<?> parent) |
ValueInjection(Value<? extends T> source,
Injector<? super T> target)
Construct a new instance.
|
ValueService(Value<T> value)
Construct a new instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CachedValue<T>
A value which is calculated once only.
|
class |
CheckedValue<T>
A value whose type is checked before it is returned.
|
class |
ClassOfValue<T>
A value which returns the
Class object of another value. |
class |
ConstructedValue<T>
A value which is created on demand from a constructor.
|
class |
DefaultValue<T>
A defaulted value.
|
class |
EnvironmentPropertyValue
A value which comes from an environment property.
|
class |
FieldValue<T>
A value which reads a field of an object.
|
class |
ImmediateValue<T>
A simple immediately-available value.
|
class |
InjectedSetValue<T>
A
Set value that can have entries injected into it. |
class |
InjectedValue<T>
A value which is injected from another source.
|
class |
ListItemValue<T>
A value which is acquired from a list by numerical index.
|
class |
ListValue<T>
A list value.
|
class |
MapEntryValue<K,V>
A value which yields a map entry.
|
class |
MapItemValue<T>
A value which is acquired from a map by key.
|
class |
MapValue<K,V>
A map value.
|
class |
MethodValue<T>
A value which is produced by invoking a method.
|
class |
ReferenceValue<T>
A value which reads a reference.
|
class |
SetValue<T>
A set value.
|
class |
SystemPropertyValue
A value which comes from a system property.
|
class |
ThreadLocalValue<T>
A thread-local value.
|
| Modifier and Type | Field and Description |
|---|---|
private Value<? extends T> |
DefaultValue.defaultValue |
private Value<?> |
EnvironmentPropertyValue.defaultValue |
private Value<?> |
SystemPropertyValue.defaultValue |
private static Value |
Values.EMPTY_LIST_VALUE |
private Value<? extends java.lang.Number> |
ListItemValue.indexValue |
private Value<?> |
MapItemValue.keyValue |
private Value<? extends java.util.List<? extends T>> |
ListItemValue.listValue |
private Value<? extends java.util.Map<?,? extends T>> |
MapItemValue.mapValue |
private Value<? extends java.util.Map<K,V>> |
MapValue.mapValue |
private Value<java.lang.reflect.Method> |
MethodValue.methodValue |
private static Value |
Values.NULL |
private Value<?> |
FieldValue.targetValue |
private Value<?> |
MethodValue.targetValue |
private Value<? extends T> |
CachedValue.value |
private Value<?> |
CheckedValue.value |
private Value<? extends T> |
ClassOfValue.value |
private Value<T> |
DefaultValue.value |
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<Value<?>> |
Values.EMPTY_LIST
The empty value list.
|
static java.util.List<? extends Value<java.lang.Class<?>>> |
Values.EMPTY_TYPE_LIST
The empty value type list.
|
private MapEntry<Value<K>,Value<V>> |
MapEntryValue.entry |
private MapEntry<Value<K>,Value<V>> |
MapEntryValue.entry |
private java.util.List<? extends Value<?>> |
ConstructedValue.parameters |
private java.util.List<? extends Value<?>> |
MethodValue.parameters |
private java.lang.ThreadLocal<Value<? extends T>> |
ThreadLocalValue.threadLocal |
private java.util.List<? extends Value<? extends T>> |
ListValue.values |
private java.util.List<MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>> |
MapValue.values |
private java.util.List<MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>> |
MapValue.values |
private java.util.List<? extends Value<? extends T>> |
SetValue.values |
| Modifier and Type | Method and Description |
|---|---|
static <T> Value<T> |
Values.asSuperclass(Value<? extends T> value)
Safely re-cast a value as its superclass.
|
static <T> Value<T> |
Values.cached(Value<T> value)
Get a cached value for some opaque value.
|
static <T> Value<java.util.List<T>> |
Values.emptyListValue()
A value which yields the empty list.
|
Value<? extends T> |
ThreadLocalValue.getAndSetValue(Value<? extends T> newValue)
Get and set the value.
|
static <T> Value<T> |
Values.immediateValue(T value)
Get an immediate value.
|
static <T> Value<T> |
Values.nullValue()
Get the null value.
|
static <K,V> Value<MapEntry<K,V>> |
MapEntryValue.of(Value<K> key,
Value<V> value)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.List<Value<? extends T>> |
Values.emptyList()
The empty value list.
|
static <T> java.util.List<Value<? extends T>> |
Values.immediateValues(java.util.List<T> values) |
static <T> java.util.List<Value<? extends T>> |
Values.immediateValues(T... values) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Value<T> |
Values.asSuperclass(Value<? extends T> value)
Safely re-cast a value as its superclass.
|
static <T> Value<T> |
Values.cached(Value<T> value)
Get a cached value for some opaque value.
|
Value<? extends T> |
ThreadLocalValue.getAndSetValue(Value<? extends T> newValue)
Get and set the value.
|
static <K,V> Value<MapEntry<K,V>> |
MapEntryValue.of(Value<K> key,
Value<V> value)
Construct a new instance.
|
static <K,V> Value<MapEntry<K,V>> |
MapEntryValue.of(Value<K> key,
Value<V> value)
Construct a new instance.
|
void |
ThreadLocalValue.setValue(Value<? extends T> newValue)
Set this value, replacing any current value.
|
void |
InjectedValue.setValue(Value<T> value)
Set the value to be injected to a
Value instance. |
| Modifier and Type | Method and Description |
|---|---|
private static void |
ErrorMessage.appendParameterList(java.lang.StringBuffer stringBuffer,
java.util.List<? extends Value<java.lang.Class<?>>> parameterTypes)
Appends a list of parameter types to
stringBuffer. |
static java.lang.Object[] |
Values.getValues(java.lang.Iterable<? extends Value<?>> i)
Get an object array from the result of an iterable series of values.
|
static <T> T[] |
Values.getValues(java.lang.Iterable<? extends Value<? extends T>> i,
java.lang.Class<T> clazz)
Get a typed object array from the result of an iterable series of values.
|
static <T> T[] |
Values.getValues(java.lang.Iterable<? extends Value<? extends T>> i,
T[] array)
Get a typed object array from the result of an iterable series of values.
|
private static java.lang.Object[] |
Values.getValues(java.util.Iterator<? extends Value<?>> i,
int idx) |
private static <T> T[] |
Values.getValues(java.util.Iterator<? extends Value<? extends T>> i,
java.lang.Class<T> clazz,
int idx) |
static java.lang.String |
ErrorMessage.noSuchConstructor(java.lang.Class<?> targetClass,
java.util.List<? extends Value<java.lang.Class<?>>> parameterTypes)
Returns a message describing a
NoSuchMethodException that occurred on a constructor lookup. |
static java.lang.String |
ErrorMessage.noSuchMethod(java.lang.Class<?> targetClass,
java.lang.String methodName,
java.util.List<? extends Value<java.lang.Class<?>>> parameterTypes)
Returns a message describing a
NoSuchMethodException that occurred on a method lookup. |
| Constructor and Description |
|---|
CachedValue(Value<? extends T> value)
Construct a new instance.
|
CheckedValue(java.lang.Class<T> valueClass,
Value<?> value)
Construct a new instance.
|
ClassOfValue(Value<? extends T> value) |
DefaultValue(Value<T> value,
Value<? extends T> defaultValue)
Construct a new instance.
|
DefaultValue(Value<T> value,
Value<? extends T> defaultValue)
Construct a new instance.
|
EnvironmentPropertyValue(java.lang.String propertyName,
java.security.AccessControlContext accessControlContext,
Value<?> defaultValue)
Construct a new instance.
|
EnvironmentPropertyValue(java.lang.String propertyName,
Value<?> defaultValue)
Construct a new instance.
|
FieldValue(java.lang.reflect.Field field,
Value<?> targetValue)
Construct a new instance.
|
ListItemValue(Value<java.util.List<? extends T>> listValue,
Value<? extends java.lang.Number> indexValue)
Construct a new instance.
|
ListItemValue(Value<java.util.List<? extends T>> listValue,
Value<? extends java.lang.Number> indexValue)
Construct a new instance.
|
MapItemValue(Value<?> keyValue,
Value<? extends java.util.Map<?,? extends T>> mapValue)
Construct a new instance.
|
MapItemValue(Value<?> keyValue,
Value<? extends java.util.Map<?,? extends T>> mapValue)
Construct a new instance.
|
MapValue(Value<? extends java.util.Map<K,V>> mapValue,
java.util.List<MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>> values)
Construct a new instance.
|
MapValue(Value<? extends java.util.Map<K,V>> mapValue,
MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>... values)
Construct a new instance.
|
MethodValue(Value<java.lang.reflect.Method> methodValue,
Value<?> targetValue,
java.util.List<? extends Value<?>> parameters)
Construct a new instance.
|
MethodValue(Value<java.lang.reflect.Method> methodValue,
Value<?> targetValue,
java.util.List<? extends Value<?>> parameters)
Construct a new instance.
|
SystemPropertyValue(java.lang.String propertyName,
java.security.AccessControlContext accessControlContext,
Value<?> defaultValue)
Construct a new instance.
|
SystemPropertyValue(java.lang.String propertyName,
Value<?> defaultValue)
Construct a new instance.
|
| Constructor and Description |
|---|
ConstructedValue(java.lang.reflect.Constructor<T> constructor,
java.util.List<? extends Value<?>> parameters)
Construct a new instance.
|
ListValue(java.util.List<? extends Value<? extends T>> values)
Construct a new instance.
|
MapEntryValue(MapEntry<Value<K>,Value<V>> entry)
Construct a new instance.
|
MapEntryValue(MapEntry<Value<K>,Value<V>> entry)
Construct a new instance.
|
MapValue(Value<? extends java.util.Map<K,V>> mapValue,
java.util.List<MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>> values)
Construct a new instance.
|
MapValue(Value<? extends java.util.Map<K,V>> mapValue,
java.util.List<MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>> values)
Construct a new instance.
|
MethodValue(Value<java.lang.reflect.Method> methodValue,
Value<?> targetValue,
java.util.List<? extends Value<?>> parameters)
Construct a new instance.
|
SetValue(java.util.List<? extends Value<? extends T>> values)
Construct a new instance.
|