You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2011/07/01 01:59:07 UTC

svn commit: r1141760 - in /tapestry/tapestry5/trunk/tapestry-core/src/main: java/org/apache/tapestry5/internal/services/javascript/CoreJavaScriptStack.java resources/org/apache/tapestry5/t5-prototype.js resources/org/apache/tapestry5/t5-spi.js

Author: hlship
Date: Thu Jun 30 23:59:06 2011
New Revision: 1141760

URL: http://svn.apache.org/viewvc?rev=1141760&view=rev
Log:
TAP5-999: Introduce empty SPI (service provider interface) and prototype adapter layers

Added:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-prototype.js
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-spi.js
Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/javascript/CoreJavaScriptStack.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/javascript/CoreJavaScriptStack.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/javascript/CoreJavaScriptStack.java?rev=1141760&r1=1141759&r2=1141760&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/javascript/CoreJavaScriptStack.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/javascript/CoreJavaScriptStack.java Thu Jun 30 23:59:06 2011
@@ -70,6 +70,10 @@ public class CoreJavaScriptStack impleme
 
             ROOT + "/t5-core.js",
 
+            ROOT + "/t5-spi.js",
+
+            ROOT + "/t5-prototype.js",
+
             ROOT + "/t5-arrays.js",
 
             ROOT + "/t5-init.js",

Added: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-prototype.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-prototype.js?rev=1141760&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-prototype.js (added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-prototype.js Thu Jun 30 23:59:06 2011
@@ -0,0 +1,24 @@
+/* Copyright 2011 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Adapts Tapestry's SPI (Service Provider Interface) to make use of the
+ * Prototype JavaScript library. May also make modifications to Prototype to
+ * work with Tapestry.
+ */
+T5.extend(T5.spi, function() {
+
+	return {};
+});
\ No newline at end of file

Added: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-spi.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-spi.js?rev=1141760&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-spi.js (added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-spi.js Thu Jun 30 23:59:06 2011
@@ -0,0 +1,29 @@
+/* Copyright 2011 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Defines the SPI (service provider interface). This represents an abstract
+ * layer between Tapestry's JavaScript and an underlying framework (such as
+ * Prototype and JQuery).
+ * 
+ * <p>
+ * The SPI defines placeholders for functions whose implementations are provided
+ * elsehwere. In some cases, an SPI may define a function in terms of other SPI
+ * functions; a framework layer may leave such a function alone or re-implement
+ * it.
+ */
+T5.define("spi", {
+
+});
\ No newline at end of file