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.
|
org.wildfly.clustering.singleton |
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,
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,
Method addMethod,
Method removeMethod)
Construct a new instance.
|
AtomicReferenceFieldUpdaterInjector(AtomicReferenceFieldUpdater<C,? super T> updater,
Value<C> target)
Construct a new instance.
|
FieldInjector(Value<?> target,
Field field)
Construct a new instance.
|
MethodInjector(Method method,
Value<?> targetValue,
Value<?> injectedValue,
List<? extends Value<?>> parameterList)
Construct a new instance.
|
MethodInjector(Method method,
Value<?> targetValue,
Value<?> injectedValue,
List<? extends Value<?>> parameterList)
Construct a new instance.
|
SetMethodInjector(Value<?> target,
Method method)
Construct a new instance.
|
Constructor and Description |
---|
MethodInjector(Method method,
Value<?> targetValue,
Value<?> injectedValue,
List<? extends Value<?>> parameterList)
Construct a new instance.
|
Modifier and Type | Interface and Description |
---|---|
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.
|
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<Void>> |
Service.NULL_VALUE
A value which resolves to the
null service . |
Modifier and Type | Method and Description |
---|---|
Value<? extends T> |
ValueInjection.getSource()
Get the source value.
|
Modifier and Type | Method and Description |
---|---|
<I> ServiceBuilder<T> |
ServiceBuilder.addInjectionValue(Injector<? super I> target,
Value<I> value)
Add an injection value.
|
<I> ServiceBuilder<T> |
DelegatingServiceBuilder.addInjectionValue(Injector<? super I> target,
Value<I> value)
Add an injection value.
|
<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> |
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> |
DelegatingServiceContainer.addServiceValue(ServiceName name,
Value<? extends Service<T>> value)
Get a builder which can be used to add a service to this target.
|
Constructor and Description |
---|
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 |
---|---|
static List<Value<?>> |
Values.EMPTY_LIST
The empty value list.
|
static List<? extends Value<Class<?>>> |
Values.EMPTY_TYPE_LIST
The empty value type list.
|
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<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> List<Value<? extends T>> |
Values.emptyList()
The empty value list.
|
static <T> List<Value<? extends T>> |
Values.immediateValues(List<T> values) |
static <T> 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 |
---|---|
static Object[] |
Values.getValues(Iterable<? extends Value<?>> i)
Get an object array from the result of an iterable series of values.
|
static <T> T[] |
Values.getValues(Iterable<? extends Value<? extends T>> i,
Class<T> clazz)
Get a typed object array from the result of an iterable series of values.
|
static <T> T[] |
Values.getValues(Iterable<? extends Value<? extends T>> i,
T[] array)
Get a typed object array from the result of an iterable series of values.
|
Constructor and Description |
---|
CachedValue(Value<? extends T> value)
Construct a new instance.
|
CheckedValue(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(String propertyName,
AccessControlContext accessControlContext,
Value<?> defaultValue)
Construct a new instance.
|
EnvironmentPropertyValue(String propertyName,
Value<?> defaultValue)
Construct a new instance.
|
FieldValue(Field field,
Value<?> targetValue)
Construct a new instance.
|
ListItemValue(Value<List<? extends T>> listValue,
Value<? extends Number> indexValue)
Construct a new instance.
|
ListItemValue(Value<List<? extends T>> listValue,
Value<? extends Number> indexValue)
Construct a new instance.
|
MapItemValue(Value<?> keyValue,
Value<? extends Map<?,? extends T>> mapValue)
Construct a new instance.
|
MapItemValue(Value<?> keyValue,
Value<? extends Map<?,? extends T>> mapValue)
Construct a new instance.
|
MapValue(Value<? extends Map<K,V>> mapValue,
List<MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>> values)
Construct a new instance.
|
MapValue(Value<? extends Map<K,V>> mapValue,
MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>... values)
Construct a new instance.
|
MethodValue(Value<Method> methodValue,
Value<?> targetValue,
List<? extends Value<?>> parameters)
Construct a new instance.
|
MethodValue(Value<Method> methodValue,
Value<?> targetValue,
List<? extends Value<?>> parameters)
Construct a new instance.
|
SystemPropertyValue(String propertyName,
AccessControlContext accessControlContext,
Value<?> defaultValue)
Construct a new instance.
|
SystemPropertyValue(String propertyName,
Value<?> defaultValue)
Construct a new instance.
|
Constructor and Description |
---|
ConstructedValue(Constructor<T> constructor,
List<? extends Value<?>> parameters)
Construct a new instance.
|
ListValue(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 Map<K,V>> mapValue,
List<MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>> values)
Construct a new instance.
|
MapValue(Value<? extends Map<K,V>> mapValue,
List<MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>> values)
Construct a new instance.
|
MethodValue(Value<Method> methodValue,
Value<?> targetValue,
List<? extends Value<?>> parameters)
Construct a new instance.
|
SetValue(List<? extends Value<? extends T>> values)
Construct a new instance.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SingletonService<T>
Implemented by the instrumented singleton service.
|
Copyright © 2017 JBoss by Red Hat. All rights reserved.