tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thiag...@apache.org
Subject [1/2] tapestry-5 git commit: Missing files for TAP5-2029
Date Thu, 23 Jul 2015 21:35:16 GMT
Repository: tapestry-5
Updated Branches:
  refs/heads/master a66e849fb -> 828b1b4b5


Missing files for TAP5-2029


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/682087df
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/682087df
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/682087df

Branch: refs/heads/master
Commit: 682087df37beb5add15a102bdfb9adfd9e2ddc76
Parents: b65ad36
Author: Thiago H. de Paula Figueiredo <thiagohp@apache.org>
Authored: Thu Jul 23 18:30:05 2015 -0300
Committer: Thiago H. de Paula Figueiredo <thiagohp@apache.org>
Committed: Thu Jul 23 18:30:05 2015 -0300

----------------------------------------------------------------------
 .../NonAnnotatedGenericServiceInterface.java    | 18 ++++++
 .../NonAnnotatedGenericSetServiceImpl.java      | 59 ++++++++++++++++++++
 .../NonAnnotatedGenericSetServiceInterface.java |  6 ++
 3 files changed, 83 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/682087df/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericServiceInterface.java
----------------------------------------------------------------------
diff --git a/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericServiceInterface.java
b/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericServiceInterface.java
new file mode 100644
index 0000000..34216df
--- /dev/null
+++ b/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericServiceInterface.java
@@ -0,0 +1,18 @@
+package org.apache.tapestry5.ioc.internal;
+
+import java.io.File;
+
+public interface NonAnnotatedGenericServiceInterface<T>
+{
+    String execute1(int i);
+
+    String execute2(int t);
+
+    String execute2(T t);
+
+    String execute2(File t);
+
+    String execute2(T t, String s);
+
+    T execute3(int i);
+}

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/682087df/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericSetServiceImpl.java
----------------------------------------------------------------------
diff --git a/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericSetServiceImpl.java
b/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericSetServiceImpl.java
new file mode 100644
index 0000000..509d5b4
--- /dev/null
+++ b/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericSetServiceImpl.java
@@ -0,0 +1,59 @@
+package org.apache.tapestry5.ioc.internal;
+
+import java.io.File;
+
+import org.apache.tapestry5.ioc.annotations.Advise;
+import org.apache.tapestry5.ioc.annotations.IntermediateType;
+
+public class NonAnnotatedGenericSetServiceImpl implements NonAnnotatedGenericSetServiceInterface
+{
+    @Override
+    @Advise(id = "id", serviceInterface = NonAnnotatedServiceInterface.class)
+    public String execute1(@IntermediateType(String.class)
+    final int i)
+    {
+        return null;
+    }
+
+    @Override
+    @Advise(id = "id", serviceInterface = NonAnnotatedServiceInterface.class)
+    public String execute2(@IntermediateType(String.class)
+    final String t)
+    {
+        return null;
+    }
+
+    @Advise(id = "file", serviceInterface = NonAnnotatedServiceInterface.class)
+    @Override
+    public String execute2(File t)
+    {
+        return null;
+    }
+
+    @Advise(id = "int", serviceInterface = NonAnnotatedServiceInterface.class)
+    @Override
+    public String execute2(int t)
+    {
+        return null;
+    }
+
+    @Override
+    @Advise(id = "id", serviceInterface = NonAnnotatedServiceInterface.class)
+    public String execute3(@IntermediateType(String.class) int i)
+    {
+        return null;
+    }
+
+    @Override
+    @Advise(id = "id", serviceInterface = NonAnnotatedServiceInterface.class)
+    public String execute2(@IntermediateType(String.class) String t, String s)
+    {
+        return null;
+    }
+
+    public static void main(String[] args) throws NoSuchMethodException, SecurityException
+    {
+        System.out.println(Object.class.isAssignableFrom(String.class));
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/682087df/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericSetServiceInterface.java
----------------------------------------------------------------------
diff --git a/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericSetServiceInterface.java
b/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericSetServiceInterface.java
new file mode 100644
index 0000000..1bb5369
--- /dev/null
+++ b/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/NonAnnotatedGenericSetServiceInterface.java
@@ -0,0 +1,6 @@
+package org.apache.tapestry5.ioc.internal;
+
+public interface NonAnnotatedGenericSetServiceInterface extends
+        NonAnnotatedGenericServiceInterface<String>
+{
+}


Mime
View raw message