tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ffa...@apache.org
Subject [1/3] TAP5-2260: Add support for CDI
Date Mon, 06 Jan 2014 09:59:31 GMT
Updated Branches:
  refs/heads/master 913c80b01 -> bf2c8a4f0


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/log4j.xml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/log4j.xml b/tapestry-cdi/src/test/resources/log4j.xml
new file mode 100644
index 0000000..5d3ed59
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/log4j.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  Log4j Configuration                                                  -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<!--
+   | For more configuration information and examples see the Jakarta Log4j
+   | website: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+  <!-- ============================== -->
+  <!-- Append messages to the console -->
+  <!-- ============================== -->
+
+  <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+    <param name="Threshold" value="DEBUG"/>
+    <param name="Target" value="System.err"/>
+
+    <layout class="org.apache.log4j.PatternLayout">
+      <param name="ConversionPattern" value="%-5p | %c | %d{ISO8601}%n   > %m%n%n"/>
+    </layout>
+  </appender>
+
+  <!-- ======================= -->
+  <!-- Setup the Root category -->
+  <!-- ======================= -->
+  
+  <logger name="org.apache.tapestry5.cdi.CDIInjectionProvider">
+    <level value="DEBUG" />
+  </logger>
+  
+  <logger name="org.apache.tapestry5.cdi.CDIObjectProvider">
+    <level value="DEBUG" />
+  </logger>
+  
+  <logger name="org.apache.tapestry5.cdi.internal.InternalUtils">
+    <level value="DEBUG" />
+  </logger>
+    
+  <logger name="org.apache.tapestry5.cdi.BeanHelper">
+      <level value="DEBUG" />
+  </logger>
+
+  <logger name="org.apache.tapestry5.cdi.extension.TapestryExtension">
+      <level value="DEBUG" />
+  </logger>
+
+  <root>
+    <priority value ="DEBUG" /> 
+    <appender-ref ref="CONSOLE"/>
+  </root>
+  
+</log4j:configuration>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/components/DumbComponent.tml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/components/DumbComponent.tml
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/components/DumbComponent.tml
new file mode 100644
index 0000000..81df81a
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/components/DumbComponent.tml
@@ -0,0 +1,7 @@
+<t:container
+	xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
+	xmlns:p="tapestry:parameter">
+
+	<p>${pojo.nameforcomponent}</p>
+	<p>${namedpojo.nameforcomponent}</p>
+</t:container>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/DessertPage.tml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/DessertPage.tml
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/DessertPage.tml
new file mode 100644
index 0000000..c22a0c2
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/DessertPage.tml
@@ -0,0 +1,10 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+
+<p>${qualifier1}</p>
+<p>${qualifier2}</p>
+<p>${qualifier3}</p>
+<p>${qualifier4}</p>
+
+<p>${qualifier5}</p>
+
+</html>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/Index.properties
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/Index.properties
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/Index.properties
new file mode 100644
index 0000000..053a599
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/Index.properties
@@ -0,0 +1,18 @@
+#
+# Copyright 2013 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.
+#
+
+messagecdi=message_cdi
+messagetapestry=message_tapestry
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/Index.tml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/Index.tml
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/Index.tml
new file mode 100644
index 0000000..b000ddd
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/Index.tml
@@ -0,0 +1,22 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+    <p>${pojo}</p>
+    <p>${namedPojo}</p>
+
+    <p>Counter : ${counterService.count}</p>
+
+   
+    <t:dumbcomponent />
+    
+    <p>${messagecdi}</p>
+    <p>${messagetapestry}</p>
+    
+    <p>${statelessejb}</p>
+    
+    <p>${requestscopepojo}</p>
+
+    <p>${sessionscopepojo}</p>
+    
+    <p>${stereotype}</p>
+    
+
+</html>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/InvalidateSessionPage.tml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/InvalidateSessionPage.tml
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/InvalidateSessionPage.tml
new file mode 100644
index 0000000..30efab3
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/InvalidateSessionPage.tml
@@ -0,0 +1,2 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+</html>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/RequestScopePage.tml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/RequestScopePage.tml
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/RequestScopePage.tml
new file mode 100644
index 0000000..d3b0230
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/RequestScopePage.tml
@@ -0,0 +1,3 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+    <p>${requestscopepojo}</p>
+</html>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/SessionScopePage.tml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/SessionScopePage.tml
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/SessionScopePage.tml
new file mode 100644
index 0000000..20b6832
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/SessionScopePage.tml
@@ -0,0 +1,3 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+<p>${sessionscopepojo}</p>
+</html>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/SomePage.tml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/SomePage.tml
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/SomePage.tml
new file mode 100644
index 0000000..30efab3
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/SomePage.tml
@@ -0,0 +1,2 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+</html>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/StatefulPage.tml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/StatefulPage.tml
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/StatefulPage.tml
new file mode 100644
index 0000000..6e6a1fa
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/StatefulPage.tml
@@ -0,0 +1,6 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+
+    <!-- see in MyStateful (beginRender) -->
+    
+    
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/StereotypePage.tml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/StereotypePage.tml
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/StereotypePage.tml
new file mode 100644
index 0000000..c0cc4f2
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/StereotypePage.tml
@@ -0,0 +1,5 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+    <p>${stereotypeBeanInfo}</p>
+    <p>${sameInstanceInfo}</p>
+    
+</html>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/VegetablePage.tml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/VegetablePage.tml
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/VegetablePage.tml
new file mode 100644
index 0000000..30d66ea
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/VegetablePage.tml
@@ -0,0 +1,4 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+
+
+</html>

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/bf2c8a4f/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/WSPage.tml
----------------------------------------------------------------------
diff --git a/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/WSPage.tml
b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/WSPage.tml
new file mode 100644
index 0000000..e183dd8
--- /dev/null
+++ b/tapestry-cdi/src/test/resources/org/apache/tapestry5/cdi/test/pages/WSPage.tml
@@ -0,0 +1,3 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+    <p>Message from a webservice @Inject'ed in the page and managed by CDI : ${message}</p>
+</html>


Mime
View raw message