Package org.jvnet.hk2.internal
Class TwoPhaseTransactionDataImpl
java.lang.Object
org.jvnet.hk2.internal.TwoPhaseTransactionDataImpl
- All Implemented Interfaces:
TwoPhaseTransactionData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<ActiveDescriptor<?>> private final List
<ActiveDescriptor<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList
<ActiveDescriptor<?>> Gets all ActiveDescriptors that will be added in this transactionList
<ActiveDescriptor<?>> Gets all ActiveDescriptors that will be removed by this transaction(package private) void
toAdd
(ActiveDescriptor<?> addMe) (package private) void
toRemove
(ActiveDescriptor<?> removeMe) toString()
-
Field Details
-
added
-
removed
-
-
Constructor Details
-
TwoPhaseTransactionDataImpl
public TwoPhaseTransactionDataImpl()
-
-
Method Details
-
getAllAddedDescriptors
Description copied from interface:TwoPhaseTransactionData
Gets all ActiveDescriptors that will be added in this transaction- Specified by:
getAllAddedDescriptors
in interfaceTwoPhaseTransactionData
- Returns:
- A non-null but possibly empty list of descriptors that will be added
-
getAllRemovedDescriptors
Description copied from interface:TwoPhaseTransactionData
Gets all ActiveDescriptors that will be removed by this transaction- Specified by:
getAllRemovedDescriptors
in interfaceTwoPhaseTransactionData
- Returns:
- Null prior to commit being invoked and a non-null but possibly empty list of descriptors that will be removed after commit being invoked
-
toAdd
-
toRemove
-
toString
-