org.apache.synapse.util.jaxp
Interface SourceBuilder

All Known Implementing Classes:
AXIOMSourceBuilder, DOOMSourceBuilder, StreamSourceBuilder

public interface SourceBuilder

Interface encapsulating a strategy to transform an AXIOM tree into a Source object. Implementations of this interface should be used in the following way:

  1. Create a new instance using the appropriate SourceBuilderFactory.
  2. Call getSource(OMElement) to get a Source object for the AXIOM tree.
  3. Use the Source object in the invocation the XSL transformer or schema validator, etc.
  4. Call release().
Note that implementations of this interface may be stateful. Therefore a single instance must never be used concurrently.


Method Summary
 Source getSource(OMElement node)
          Get a Source implementation for the given AXIOM tree.
 void release()
          Release any resources associated with this object.
 

Method Detail

getSource

Source getSource(OMElement node)
Get a Source implementation for the given AXIOM tree.

Parameters:
node - the root node of the AXIOM tree
Returns:
the source object

release

void release()
Release any resources associated with this object.



Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.