Package | Description |
---|---|
org.jvnet.hk2.config | |
org.jvnet.hk2.config.api | |
org.jvnet.hk2.config.types |
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigExtensionHandler<T extends ConfigBeanProxy> |
interface |
SingleConfigCode<T extends ConfigBeanProxy>
SimpleConfigCode is code snippet that can be used to apply some configuration
changes to one configuration object.
|
Modifier and Type | Interface and Description |
---|---|
interface |
VersionedConfigBeanProxy |
Modifier and Type | Method and Description |
---|---|
<T extends ConfigBeanProxy> |
WriteableView.allocateProxy(Class<T> type)
Allocate a new ConfigBean object as part of the Transaction
associated with this configuration object.
|
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
|
<T extends ConfigBeanProxy> |
Changed.changed(Changed.TYPE type,
Class<T> changedType,
T changedInstance)
Notification of a change on a configuration object
|
<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) |
<T extends ConfigBeanProxy> |
Dom.createProxy()
Creates a strongly-typed proxy to access values in this
Dom object, |
<T extends ConfigBeanProxy> |
Dom.createProxy(Class<T> proxyType)
Creates a strongly-typed proxy to access values in this
Dom object,
by using the specified interface type as the proxy type. |
<T extends ConfigBeanProxy> |
Transaction.enroll(T source)
Enroll a configuration object in a transaction and returns a writeable view of it
|
<T extends ConfigBeanProxy> |
ConfigBeanProxy.getParent(Class<T> type)
Returns the typed parent element of this configuration element.
|
static <T extends ConfigBeanProxy> |
ConfigBeanProxy.Duck.getParent(ConfigBeanProxy self,
Class<T> c) |
<T extends ConfigBeanProxy> |
WriteableView.getProxy(Class<T> type) |
<T extends ConfigBeanProxy> |
ConfigView.getProxy(Class<T> proxyType) |
<T extends ConfigBeanProxy> |
ConfigBean.getProxy(Class<T> proxyType)
Creates a proxy for this view.
|
<T extends ConfigBeanProxy> |
WriteableView.getProxyType() |
<T extends ConfigBeanProxy> |
ConfigView.getProxyType() |
<T extends ConfigBeanProxy> |
Dom.getProxyType()
Returns the proxy type for this configuration object
|
<T extends ConfigBeanProxy> |
ConfigModel.getProxyType()
Return the proxy type for this model
|
static <T extends ConfigBeanProxy> |
Transaction.getTransaction(T source)
Returns the transaction associated with a writable view
|
<T extends ConfigBeanProxy> |
ConfigSupport.getWriteableView(T source)
Returns a writeable view of a configuration object
|
static <T extends ConfigBeanProxy> |
ConfigSupport.proxyType(T element)
Returns the type of configuration object this config proxy represents.
|
static <T extends ConfigBeanProxy> |
ConfigSupport.revealProxy(T proxy)
Unwrap HK2 proxy to ConfigBeanProxy.
|
<T extends ConfigBeanProxy> |
Transformer.transform(T source)
Returns a different view of the source object.
|
Modifier and Type | Method and Description |
---|---|
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) |
ConfigBeanProxy |
ConfigBeanProxy.getParent()
Returns the parent element of this configuration element.
|
static ConfigBeanProxy |
ConfigBeanProxy.Duck.getParent(ConfigBeanProxy self) |
Modifier and Type | Method and Description |
---|---|
static Class<? extends ConfigBeanProxy> |
ConfigSupport.getElementTypeByName(ConfigBeanProxy parent,
String elementName) |
Modifier and Type | Method and Description |
---|---|
Object |
ConfigSupport._apply(ConfigCode code,
ConfigBeanProxy... objects)
Executes some logic on some config beans protected by a transaction.
|
Object |
ConfigSupport.addChildWithAttributes(ConfigBeanProxy param,
ConfigBean parent,
Class<? extends ConfigBeanProxy> childType,
List<AttributeChanges> attributes,
TransactionCallBack<WriteableView> runnable) |
static Object |
ConfigSupport.apply(ConfigCode code,
ConfigBeanProxy... objects)
Executes some logic on some config beans protected by a transaction.
|
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 Class<? extends ConfigBeanProxy> |
ConfigSupport.getElementTypeByName(ConfigBeanProxy parent,
String elementName) |
static ConfigView |
ConfigSupport.getImpl(ConfigBeanProxy source)
Return the main implementation bean for a proxy.
|
static ConfigBeanProxy |
ConfigBeanProxy.Duck.getParent(ConfigBeanProxy self) |
static <T extends ConfigBeanProxy> |
ConfigBeanProxy.Duck.getParent(ConfigBeanProxy self,
Class<T> c) |
Object |
ConfigCode.run(ConfigBeanProxy... params)
Runs the following command passing the configration object.
|
static Dom |
Dom.unwrap(ConfigBeanProxy proxy)
Unwraps the proxy and returns the underlying
Dom object. |
Modifier and Type | Method and Description |
---|---|
Object |
ConfigSupport.addChildWithAttributes(ConfigBeanProxy param,
ConfigBean parent,
Class<? extends ConfigBeanProxy> childType,
List<AttributeChanges> attributes,
TransactionCallBack<WriteableView> runnable) |
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.
|
Constructor and Description |
---|
WriteableView(ConfigBeanProxy readView) |
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.
|
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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Property
Property type definition.
|
Copyright © 2009–2017 Oracle Corporation. All rights reserved.