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<?>>addedprivate 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) voidtoAdd(ActiveDescriptor<?> addMe)(package private) voidtoRemove(ActiveDescriptor<?> removeMe)java.lang.StringtoString()
-
-
-
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:TwoPhaseTransactionDataGets all ActiveDescriptors that will be added in this transaction- Specified by:
getAllAddedDescriptorsin 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:TwoPhaseTransactionDataGets all ActiveDescriptors that will be removed by this transaction- Specified by:
getAllRemovedDescriptorsin 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:
toStringin classjava.lang.Object
-
-