| Package | Description |
|---|---|
| org.jvnet.hk2.config |
| Modifier and Type | Interface and Description |
|---|---|
interface |
DomDecorator<T extends Dom> |
class |
DomDocument<T extends Dom>
Represents a whole DOM tree.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ConfigBean
ConfigBean is the core implementation of the config beans.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T extends Dom> |
ConfigBean.copy(T parent)
Returns a copy of itself providing the parent for the new copy.
|
protected <T extends Dom> |
Dom.copy(T parent)
Returns a copy of itself providing the parent for the new copy.
|
| Modifier and Type | Method and Description |
|---|---|
Dom |
DomDecorator.decorate(ServiceLocator habitat,
DomDocument document,
T parent,
ConfigModel model,
javax.xml.stream.XMLStreamReader in) |
Dom |
Dom.element(java.lang.String name)
Returns the child element by name
|
Dom |
DomDocument.getRoot() |
Dom |
Dom.getSymbolSpaceRoot(java.lang.String typeName)
Locates the DOM that serves as the symbol space root.
|
protected Dom |
ConfigParser.handleElement(javax.xml.stream.XMLStreamReader in,
DomDocument document,
Dom parent)
Parses a whole XML tree and builds a
Dom tree. |
protected Dom |
ConfigParser.handleElement(javax.xml.stream.XMLStreamReader in,
DomDocument document,
Dom parent,
ConfigModel model)
Parses a whole XML tree and builds a
Dom tree, by using the given model
for the top-level element. |
Dom |
DomDocument.make(ServiceLocator habitat,
javax.xml.stream.XMLStreamReader in,
T parent,
ConfigModel model) |
Dom |
Dom.nodeElement(java.lang.String name)
Picks up one node-element value.
|
Dom |
Dom.parent()
If this DOM is a child of another DOM, the parent pointer.
|
Dom |
Dom.resolveReference(java.lang.String key,
java.lang.String typeName)
Recursively decends the DOM tree and finds a DOM that has the given key
and the type name.
|
protected Dom |
ConfigModel.Node.toDom(java.lang.Object arg)
Coerce the given type to
Dom. |
static Dom |
Dom.unwrap(ConfigBeanProxy proxy)
Unwraps the proxy and returns the underlying
Dom object. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Dom> |
Dom.domNodeByTypeElements(java.lang.Class baseType)
Picks up all node elements that are assignable to the given type,
except those who are matched by other named elements in the model.
|
java.util.List<Dom> |
Dom.nodeElements(java.lang.String elementName)
Picks up all node-elements that have the given element name.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
ConfigModel.Property.get(Dom dom,
java.lang.reflect.Type returnType)
Gets the value from
Dom in the specified type. |
protected Dom |
ConfigParser.handleElement(javax.xml.stream.XMLStreamReader in,
DomDocument document,
Dom parent)
Parses a whole XML tree and builds a
Dom tree. |
protected Dom |
ConfigParser.handleElement(javax.xml.stream.XMLStreamReader in,
DomDocument document,
Dom parent,
ConfigModel model)
Parses a whole XML tree and builds a
Dom tree, by using the given model
for the top-level element. |
void |
NoopConfigInjector.inject(Dom dom,
java.lang.Object target) |
abstract void |
ConfigInjector.inject(Dom dom,
T target)
Reads values from
Dom and inject them into the given target object. |
void |
NoopConfigInjector.injectAttribute(Dom dom,
java.lang.String attributeName,
java.lang.Object target) |
abstract void |
ConfigInjector.injectAttribute(Dom dom,
java.lang.String attributeName,
T target)
Injects a single property of the given attribute name.
|
void |
NoopConfigInjector.injectElement(Dom dom,
java.lang.String elementName,
java.lang.Object target) |
abstract void |
ConfigInjector.injectElement(Dom dom,
java.lang.String elementName,
T target)
Injects a single property of the given element name.
|
void |
Dom.insertAfter(Dom reference,
java.lang.String name,
Dom newNode)
Inserts a new
Dom node right after the given DOM element. |
DomDocument |
ConfigParser.parse(java.net.URL source,
DomDocument document,
Dom parent) |
void |
ConfigParser.parse(javax.xml.stream.XMLStreamReader in,
DomDocument document,
Dom parent) |
<T> T |
ConfigInjector.reference(Dom dom,
java.lang.String id,
java.lang.Class<T> type)
Resolves a reference to the given type by the given id.
|
void |
Dom.removeChild(Dom reference)
Removes an existing
NodeChild |
void |
Dom.replaceChild(Dom reference,
java.lang.String name,
Dom newNode)
Replaces an existing
NodeChild with another one. |
abstract void |
ConfigModel.Property.set(Dom dom,
java.lang.Object arg)
Sets the value to
Dom. |
void |
Dom.setNodeElements(java.lang.String name,
Dom... values)
Updates node-element values.
|
| Constructor and Description |
|---|
ConfigBean(Dom source,
Dom parent)
Copy constructor, used to get a deep copy of the passed instance.
|
Dom(Dom source,
Dom parent)
Copy constructor, used to get a deep copy of the passed instance
|
Dom(ServiceLocator habitat,
DomDocument document,
Dom parent,
ConfigModel model) |
Dom(ServiceLocator habitat,
DomDocument document,
Dom parent,
ConfigModel model,
javax.xml.stream.XMLStreamReader in) |
DomDescriptor(Dom theDom,
java.util.Set<java.lang.reflect.Type> advertisedContracts,
java.lang.Class<? extends java.lang.annotation.Annotation> scope,
java.lang.String name,
java.util.Set<java.lang.annotation.Annotation> qualifiers)
Creates the constant descriptor
|
Copyright © 2013 Oracle Corporation. All Rights Reserved.