| Package | Description |
|---|---|
| org.jvnet.hk2.config |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
ConfigSupport._apply(ConfigCode code,
ConfigBeanProxy... objects)
Executes some logic on some config beans protected by a transaction.
|
static void |
ConfigSupport._deleteChild(ConfigBean parent,
WriteableView writeableParent,
ConfigBean child)
Unprotected child deletion, caller must start a transaction before calling this
method.
|
<T extends ConfigBeanProxy> |
WriteableView.allocateProxy(java.lang.Class<T> type)
Allocate a new ConfigBean object as part of the Transaction
associated with this configuration object.
|
static java.lang.Object |
ConfigSupport.apply(ConfigCode code,
ConfigBeanProxy... objects)
Executes some logic on some config beans protected by a transaction.
|
void |
ConfigSupport.apply(java.util.Map<ConfigBean,java.util.Map<java.lang.String,java.lang.String>> mapOfChanges) |
static <T extends ConfigBeanProxy> |
ConfigSupport.apply(SingleConfigCode<T> code,
T param)
Execute some logic on one config bean of type T protected by a transaction
|
boolean |
Transaction.canCommit()
Tests if the transaction participants will pass the prepare phase successfully.
|
boolean |
Transactor.canCommit(Transaction t)
Returns true of this Transaction can be committed on this object
|
boolean |
WriteableView.canCommit(Transaction t)
Returns true of this Transaction can be committed on this object
|
java.util.List<java.beans.PropertyChangeEvent> |
Transaction.commit()
Commits all participants to this transaction
|
java.util.List<java.beans.PropertyChangeEvent> |
Transactor.commit(Transaction t)
Commit this Transaction.
|
java.util.List<java.beans.PropertyChangeEvent> |
WriteableView.commit(Transaction t)
Commit this Transaction.
|
ConfigBean |
ConfigSupport.createAndSet(ConfigBean parent,
java.lang.Class<? extends ConfigBeanProxy> childType,
java.util.List<ConfigSupport.AttributeChanges> attributes) |
static ConfigBean |
ConfigSupport.createAndSet(ConfigBean parent,
java.lang.Class<? extends ConfigBeanProxy> childType,
java.util.List<ConfigSupport.AttributeChanges> attributes,
ConfigSupport.TransactionCallBack<WriteableView> runnable)
Creates a new child of the passed child and add it to the parent's live
list of elements.
|
static ConfigBean |
ConfigSupport.createAndSet(ConfigBean parent,
java.lang.Class<? extends ConfigBeanProxy> childType,
java.util.Map<java.lang.String,java.lang.String> attributes)
Creates a new child of the passed child and add it to the parent's live
list of elements.
|
static ConfigBean |
ConfigSupport.createAndSet(ConfigBean parent,
java.lang.Class<? extends ConfigBeanProxy> childType,
java.util.Map<java.lang.String,java.lang.String> attributes,
ConfigSupport.TransactionCallBack<WriteableView> runnable)
Creates a new child of the passed child and add it to the parent's live
list of elements.
|
<T extends ConfigBeanProxy> |
ConfigBeanProxy.createChild(java.lang.Class<T> type)
Creates a child element of this configuration element
|
static <T extends ConfigBeanProxy> |
ConfigBeanProxy.Duck.createChild(ConfigBeanProxy self,
java.lang.Class<T> c) |
ConfigBeanProxy |
ConfigBeanProxy.deepCopy(ConfigBeanProxy parent)
Performs a deep copy of this configuration element and returns it.
|
static ConfigBeanProxy |
ConfigBeanProxy.Duck.deepCopy(ConfigBeanProxy self,
ConfigBeanProxy parent) |
static void |
ConfigSupport.deleteChild(ConfigBean parent,
ConfigBean child) |
<T extends ConfigBeanProxy> |
Transaction.enroll(T source)
Enroll a configuration object in a transaction and returns a writeable view of it
|
<T extends ConfigBeanProxy> |
ConfigSupport.getWriteableView(T source)
Returns a writeable view of a configuration object
|
void |
ConfigSupport.TransactionCallBack.performOn(T param) |
java.lang.Object |
ConfigCode.run(ConfigBeanProxy... params)
Runs the following command passing the configration object.
|
java.lang.Object |
SingleConfigCode.run(T param)
Runs the following command passing the configration object.
|
Copyright © 2013 Oracle Corporation. All Rights Reserved.