com.softwareag.tamino.db.api.response
Class TResponseBuilderFactory

java.lang.Object
  extended by com.softwareag.tamino.db.api.response.TResponseBuilderFactory

public class TResponseBuilderFactory
extends java.lang.Object

TResponseBuilderFactory is the factory class for the instantiation of TResponseBuilder instances. This factory instantiates a concrete response builder that builds XmlObject instances according to a specific XML object model. Currently only the Bolero XML object model is supported which means that objects of Bolero generated XML classes are instantiated. For the future it is also planned to implement concrete response builder for DOM as well as JDOM object models. The Class is implemented according the singleton pattern.

Version:
$Revision: 1.11 $
Author:
Marcus Schreyer

Constructor Summary
protected TResponseBuilderFactory()
          Default Constructor.
 
Method Summary
static TResponseBuilderFactory getInstance()
          Gets the singleton instance for this class.
 TResponseBuilder newResponseBuilder(java.lang.Object xmlObjectModel)
          Creates a TResponseBuilder instance for the specified XML object model.
 TResponseBuilder newResponseBuilder(java.lang.Object xmlObjectModel, TAbstractAccessor abstractAccessor)
          Creates a TResponseBuilder instance for the specified XML object model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TResponseBuilderFactory

protected TResponseBuilderFactory()
Default Constructor.

Method Detail

getInstance

public static TResponseBuilderFactory getInstance()
Gets the singleton instance for this class.


newResponseBuilder

public TResponseBuilder newResponseBuilder(java.lang.Object xmlObjectModel,
                                           TAbstractAccessor abstractAccessor)
Creates a TResponseBuilder instance for the specified XML object model.

Parameters:
xmlObjectModel - specifies the XML object model according to which concrete XmlObject instances are instantiated.
abstractAccessor - abstract accessor is the object needed to invoke Tamino commands on the unerlying Tamino database.

newResponseBuilder

public TResponseBuilder newResponseBuilder(java.lang.Object xmlObjectModel)
Creates a TResponseBuilder instance for the specified XML object model. Currently only Bolero is supported.

Parameters:
xmlObjectModel - specifies the XML object model according to which concrete XmlObject instances are instantiated.
transactionModeListener -
invocation - is the object needed to invoke Tamino commands on the unerlying Tamino database.


Copyright (c) 2013 Software AG. All Rights Reserved.