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> |
Dom.copy(T parent)
Returns a copy of itself providing the parent for the new copy.
|
protected <T extends Dom> |
ConfigBean.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,
XMLStreamReader in) |
Dom |
Dom.element(String name)
Returns the child element by name
|
Dom |
DomDocument.getRoot() |
Dom |
Dom.getSymbolSpaceRoot(String typeName)
Locates the DOM that serves as the symbol space root.
|
protected Dom |
ConfigParser.handleElement(XMLStreamReader in,
DomDocument document,
Dom parent)
Parses a whole XML tree and builds a
Dom tree. |
protected Dom |
ConfigParser.handleElement(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,
XMLStreamReader in,
T parent,
ConfigModel model) |
Dom |
Dom.nodeElement(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(String key,
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(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 |
---|---|
List<Dom> |
Dom.domNodeByTypeElements(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.
|
List<Dom> |
Dom.nodeElements(String elementName)
Picks up all node-elements that have the given element name.
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
ConfigModel.Property.get(Dom dom,
Type returnType)
Gets the value from
Dom in the specified type. |
protected Dom |
ConfigParser.handleElement(XMLStreamReader in,
DomDocument document,
Dom parent)
Parses a whole XML tree and builds a
Dom tree. |
protected Dom |
ConfigParser.handleElement(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,
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,
String attributeName,
Object target) |
abstract void |
ConfigInjector.injectAttribute(Dom dom,
String attributeName,
T target)
Injects a single property of the given attribute name.
|
void |
NoopConfigInjector.injectElement(Dom dom,
String elementName,
Object target) |
abstract void |
ConfigInjector.injectElement(Dom dom,
String elementName,
T target)
Injects a single property of the given element name.
|
void |
Dom.insertAfter(Dom reference,
String name,
Dom newNode)
Inserts a new
Dom node right after the given DOM element. |
DomDocument |
ConfigParser.parse(URL source,
DomDocument document,
Dom parent) |
void |
ConfigParser.parse(XMLStreamReader in,
DomDocument document,
Dom parent) |
<T> T |
ConfigInjector.reference(Dom dom,
String id,
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,
String name,
Dom newNode)
Replaces an existing
NodeChild with another one. |
abstract void |
ConfigModel.Property.set(Dom dom,
Object arg)
Sets the value to
Dom . |
void |
Dom.setNodeElements(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,
XMLStreamReader in) |
DomDescriptor(Dom theDom,
Set<Type> advertisedContracts,
Class<? extends Annotation> scope,
String name,
Set<Annotation> qualifiers)
Creates the constant descriptor
|
Copyright © 2009–2016 Oracle Corporation. All rights reserved.