Package org.jvnet.hk2.internal
Class TwoPhaseTransactionDataImpl
- java.lang.Object
-
- org.jvnet.hk2.internal.TwoPhaseTransactionDataImpl
-
- All Implemented Interfaces:
TwoPhaseTransactionData
public class TwoPhaseTransactionDataImpl extends java.lang.Object implements TwoPhaseTransactionData
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ActiveDescriptor<?>>
added
private java.util.List<ActiveDescriptor<?>>
removed
-
Constructor Summary
Constructors Constructor Description TwoPhaseTransactionDataImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ActiveDescriptor<?>>
getAllAddedDescriptors()
Gets all ActiveDescriptors that will be added in this transactionjava.util.List<ActiveDescriptor<?>>
getAllRemovedDescriptors()
Gets all ActiveDescriptors that will be removed by this transaction(package private) void
toAdd(ActiveDescriptor<?> addMe)
(package private) void
toRemove(ActiveDescriptor<?> removeMe)
java.lang.String
toString()
-
-
-
Field Detail
-
added
private final java.util.List<ActiveDescriptor<?>> added
-
removed
private final java.util.List<ActiveDescriptor<?>> removed
-
-
Method Detail
-
getAllAddedDescriptors
public java.util.List<ActiveDescriptor<?>> 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
public java.util.List<ActiveDescriptor<?>> 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
void toAdd(ActiveDescriptor<?> addMe)
-
toRemove
void toRemove(ActiveDescriptor<?> removeMe)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-