org.jboss.dna.graph.xml
Interface XmlHandler.Destination

Enclosing class:
XmlHandler

@NotThreadSafe
public static interface XmlHandler.Destination

Interface used internally as the destination for the requests. This is used to abstract whether the requests should be submitted immediately or in a single batch.

Author:
Randall Hauch

Method Summary
 void create(Path path, List<Property> properties)
          Create a node at the supplied path and with the supplied attributes.
 void create(Path path, Property firstProperty, Property... additionalProperties)
          Create a node at the supplied path and with the supplied attributes.
 ExecutionContext getExecutionContext()
          Obtain the execution context of the destination.
 void submit()
          Signal to this destination that any enqueued create requests should be submitted.
 

Method Detail

getExecutionContext

ExecutionContext getExecutionContext()
Obtain the execution context of the destination.

Returns:
the destination's execution context

create

void create(Path path,
            List<Property> properties)
Create a node at the supplied path and with the supplied attributes. The path will be absolute.

Parameters:
path - the absolute path of the node
properties - the properties for the node; never null, but may be empty if there are no properties

create

void create(Path path,
            Property firstProperty,
            Property... additionalProperties)
Create a node at the supplied path and with the supplied attributes. The path will be absolute.

Parameters:
path - the absolute path of the node
firstProperty - the first property
additionalProperties - the remaining properties for the node

submit

void submit()
Signal to this destination that any enqueued create requests should be submitted. Usually this happens at the end of the document parsing, but an implementer must allow for it to be called multiple times and anytime during parsing.



Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.