Package | Description |
---|---|
org.jvnet.hk2.config | |
org.jvnet.hk2.config.api |
Modifier and Type | Method and Description |
---|---|
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.
|
Object |
ConfigSupport.addChildWithAttributes(ConfigBeanProxy param,
ConfigBean parent,
Class<? extends ConfigBeanProxy> childType,
List<AttributeChanges> attributes,
TransactionCallBack<WriteableView> runnable) |
<T extends ConfigBeanProxy> |
WriteableView.allocateProxy(Class<T> type)
Allocate a new ConfigBean object as part of the Transaction
associated with this configuration object.
|
static Object |
ConfigSupport.apply(ConfigCode code,
ConfigBeanProxy... objects)
Executes some logic on some config beans protected by a transaction.
|
void |
ConfigSupport.apply(Map<ConfigBean,Map<String,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
|
List<PropertyChangeEvent> |
Transaction.commit()
Commits all participants to this transaction
|
List<PropertyChangeEvent> |
Transactor.commit(Transaction t)
Commit this Transaction.
|
List<PropertyChangeEvent> |
WriteableView.commit(Transaction t)
Commit this Transaction.
|
ConfigBean |
ConfigSupport.createAndSet(ConfigBean parent,
Class<? extends ConfigBeanProxy> childType,
List<AttributeChanges> attributes) |
static ConfigBean |
ConfigSupport.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 ConfigBean |
ConfigSupport.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 ConfigBean |
ConfigSupport.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.
|
<T extends ConfigBeanProxy> |
ConfigBeanProxy.createChild(Class<T> type)
Creates a child element of this configuration element
|
static <T extends ConfigBeanProxy> |
ConfigBeanProxy.Duck.createChild(ConfigBeanProxy self,
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 |
TransactionCallBack.performOn(T param)
Is performed after the action has been completed
|
Object |
ConfigCode.run(ConfigBeanProxy... params)
Runs the following command passing the configration object.
|
Object |
SingleConfigCode.run(T param)
Runs the following command passing the configration object.
|
Modifier and Type | Method and Description |
---|---|
Object |
ConfigurationUtilities.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.
|
Copyright © 2009–2016 Oracle Corporation. All rights reserved.