Uses of Class
org.jvnet.hk2.config.TransactionFailure
Packages that use TransactionFailure
-
Uses of TransactionFailure in org.jvnet.hk2.config
Methods in org.jvnet.hk2.config that throw TransactionFailureModifier and TypeMethodDescriptionConfigSupport._apply(ConfigCode code, ConfigBeanProxy... objects) Executes some logic on some config beans protected by a transaction.static voidConfigSupport._deleteChild(ConfigBean parent, WriteableView writeableParent, ConfigBean child) Unprotected child deletion, caller must start a transaction before calling this method.ConfigSupport.addChildWithAttributes(ConfigBeanProxy param, ConfigBean parent, Class<? extends ConfigBeanProxy> childType, List<AttributeChanges> attributes, TransactionCallBack<WriteableView> runnable) <T extends ConfigBeanProxy>
TWriteableView.allocateProxy(Class<T> type) Allocate a new ConfigBean object as part of the Transaction associated with this configuration object.voidstatic ObjectConfigSupport.apply(ConfigCode code, ConfigBeanProxy... objects) Executes some logic on some config beans protected by a transaction.static <T extends ConfigBeanProxy>
ObjectConfigSupport.apply(SingleConfigCode<T> code, T param) Execute some logic on one config bean of type T protected by a transactionbooleanTransaction.canCommit()Tests if the transaction participants will pass the prepare phase successfully.booleanTransactor.canCommit(Transaction t) Returns true of this Transaction can be committed on this objectbooleanWriteableView.canCommit(Transaction t) Returns true of this Transaction can be committed on this objectTransaction.commit()Commits all participants to this transactionTransactor.commit(Transaction t) Commit this Transaction.WriteableView.commit(Transaction t) Commit this Transaction.ConfigSupport.createAndSet(ConfigBean parent, Class<? extends ConfigBeanProxy> childType, List<AttributeChanges> attributes) static ConfigBeanConfigSupport.createAndSet(ConfigBean parent, Class<? extends ConfigBeanProxy> childType, List<AttributeChanges> attributes, TransactionCallBack<WriteableView> runnable) Creates a new child of the passed child and add it to the parent's live list of elements.static ConfigBeanConfigSupport.createAndSet(ConfigBean parent, Class<? extends ConfigBeanProxy> childType, Map<String, String> attributes) Creates a new child of the passed child and add it to the parent's live list of elements.static ConfigBeanConfigSupport.createAndSet(ConfigBean parent, Class<? extends ConfigBeanProxy> childType, Map<String, String> attributes, TransactionCallBack<WriteableView> runnable) Creates a new child of the passed child and add it to the parent's live list of elements.default <T extends ConfigBeanProxy>
TConfigBeanProxy.createChild(Class<T> type) Creates a child element of this configuration elementdefault ConfigBeanProxyConfigBeanProxy.deepCopy(ConfigBeanProxy parent) Performs a deep copy of this configuration element and returns it.static voidConfigSupport.deleteChild(ConfigBean parent, ConfigBean child) <T extends ConfigBeanProxy>
TTransaction.enroll(T source) Enroll a configuration object in a transaction and returns a writeable view of it<T extends ConfigBeanProxy>
TConfigSupport.getWriteableView(T source) Returns a writeable view of a configuration objectvoidIs performed after the action has been completedConfigCode.run(ConfigBeanProxy... params) Runs the following command passing the configration object.Runs the following command passing the configration object. -
Uses of TransactionFailure in org.jvnet.hk2.config.api
Methods in org.jvnet.hk2.config.api that throw TransactionFailureModifier and TypeMethodDescriptionConfigurationUtilities.addChildWithAttributes(ConfigBeanProxy param, ConfigBean parent, Class<? extends ConfigBeanProxy> childType, List<AttributeChanges> attributes, TransactionCallBack<WriteableView> runnable) Adds this child bean to the parent with the given attributes.