incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r465743 - /incubator/xap/trunk/src/xap/data/DataNamespaceHandler.js
Date Thu, 19 Oct 2006 19:20:42 GMT
Author: mturyn
Date: Thu Oct 19 12:20:41 2006
New Revision: 465743

URL: http://svn.apache.org/viewvc?view=rev&rev=465743
Log:
Moved require() statements to constructor for JIT loading of the data infrastructure---we
won't load these files (and the files they cause to be loaded) until we need them.

Modified:
    incubator/xap/trunk/src/xap/data/DataNamespaceHandler.js

Modified: incubator/xap/trunk/src/xap/data/DataNamespaceHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/data/DataNamespaceHandler.js?view=diff&rev=465743&r1=465742&r2=465743
==============================================================================
--- incubator/xap/trunk/src/xap/data/DataNamespaceHandler.js (original)
+++ incubator/xap/trunk/src/xap/data/DataNamespaceHandler.js Thu Oct 19 12:20:41 2006
@@ -16,16 +16,8 @@
  *
  */
 Xap.provide("xap.data.DataNamespaceHandler");
-Xap.require("xap.session.ClientSession");
-Xap.require("xap.taghandling.PluginDocumentHandler");
-Xap.require("xap.xml.dom.Document"); 
-//Xap.require("xap.xml.DocumentLocation") ;
-Xap.require("xap.xml.DocumentContainer");
-Xap.require("xap.xml.dom.XapElement"); 
-//Xap.require("xap.xml.NamespaceHandler") ; 
-Xap.require("xap.xml.sax.ParserException");
-Xap.require("xap.xml.sax.SaxParser");
-Xap.require("xap.data.controller.BindingResolver") ;
+
+
 /**
  * @class
  * The namespace handler for the http://openxal.apache.org/data namespace. This handler
@@ -44,6 +36,16 @@
  * @return {DataNamespaceHandler}
  **/
 xap.data.DataNamespaceHandler = function (sess) {
+	Xap.require("xap.data.controller.IteratorContainerImpl") ;
+	Xap.require("xap.xml.sax.ParserException");
+	Xap.require("xap.xml.sax.SaxParser");
+	Xap.require("xap.session.ClientSession");
+	Xap.require("xap.taghandling.PluginDocumentHandler");
+	Xap.require("xap.xml.dom.Document"); 
+	Xap.require("xap.xml.DocumentContainer");
+	Xap.require("xap.xml.dom.XapElement"); 
+	Xap.require("xap.data.controller.BindingResolver") ;		
+	
 	this._session = sess;
 	// Substitute for a session-held document registry, at least for now:
 	this._documentRegistry = new Object();
@@ -156,11 +158,8 @@
 	var resolver = new xap.data.controller.BindingResolver(this._session);
 		
 		//also set it on the framework service
-	(xap.data.DataFramework.getDataService(this._session)
-		).setBindingResolver(resolver);
-	
-	
-	
+	var frameworkService = xap.data.DataFramework.getDataService(this._session) ;
+	frameworkService.setBindingResolver( resolver ) ;
 	
 };
 /**



Mime
View raw message