Package org.jboss.msc.value
Class InjectedSetValue<T>
- java.lang.Object
-
- org.jboss.msc.value.InjectedSetValue<T>
-
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
Value<java.util.Set<T>>
public final class InjectedSetValue<T> extends java.lang.Object implements Value<java.util.Set<T>>
ASet
value that can have entries injected into it. The underlying set is an instance ofLinkedHashSet
, so iteration order will be consistent. Theinjector()
method is used to get an injector that can inject into the set.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<T>
cachedValue
private java.util.Set<T>
value
-
Constructor Summary
Constructors Constructor Description InjectedSetValue()
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addItem(T item)
java.util.Set<T>
getValue()
Get the actual value.Injector<T>
injector()
Gets an injector for this set.private void
removeItem(T item)
-