summaryrefslogtreecommitdiffstats
path: root/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources
diff options
context:
space:
mode:
authorOlli Virtanen <olli.virtanen@oath.com>2018-05-24 13:22:11 +0200
committerOlli Virtanen <olli.virtanen@oath.com>2018-05-24 13:22:11 +0200
commit50c82b3a07061f636810f1f60b4923f216729d8f (patch)
treef34b281494332762e5b3cdc52842b185c2d3508f /container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources
parent96ebcb01c2719dcf3f267aa2612878b564c7892e (diff)
Scala code converted to Java
Diffstat (limited to 'container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources')
-rw-r--r--container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResource.scala10
-rw-r--r--container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResourceBase.scala26
-rw-r--r--container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/nestedpackage1/NestedTestResource1.scala12
-rw-r--r--container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/nestedpackage2/NestedTestResource2.scala12
4 files changed, 0 insertions, 60 deletions
diff --git a/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResource.scala b/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResource.scala
deleted file mode 100644
index b73a8735789..00000000000
--- a/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResource.scala
+++ /dev/null
@@ -1,10 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.container.test.jars.jersey.resources
-
-import javax.ws.rs.Path
-
-/**
- * @author tonytv
- */
-@Path("bundle-plugin-test/test-resource")
-class TestResource extends TestResourceBase
diff --git a/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResourceBase.scala b/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResourceBase.scala
deleted file mode 100644
index 5ccd89b30ac..00000000000
--- a/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResourceBase.scala
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.container.test.jars.jersey.resources
-
-import javax.ws.rs.core.MediaType
-import javax.ws.rs.{Produces, GET}
-
-import scala.reflect.ClassTag
-
-/**
- * @author tonytv
- */
-class TestResourceBase {
- @GET
- @Produces(Array(MediaType.TEXT_PLAIN))
- def get() = TestResourceBase.content(getClass)
-}
-
-object TestResourceBase {
- def content(clazz: Class[_ <: TestResourceBase]): String =
- "Response from " + clazz.getName
-
- def content[T <: TestResourceBase](implicit classTag: ClassTag[T]): String = {
- val clazz = classTag.runtimeClass.asInstanceOf[Class[_ <: TestResourceBase]]
- content(clazz)
- }
-}
diff --git a/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/nestedpackage1/NestedTestResource1.scala b/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/nestedpackage1/NestedTestResource1.scala
deleted file mode 100644
index 440f2f45cea..00000000000
--- a/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/nestedpackage1/NestedTestResource1.scala
+++ /dev/null
@@ -1,12 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.container.test.jars.jersey.resources.nestedpackage1
-
-import javax.ws.rs.Path
-
-import com.yahoo.container.test.jars.jersey.resources.TestResourceBase
-
-/**
- * @author tonytv
- */
-@Path("bundle-plugin-test/nested-test-resource1")
-class NestedTestResource1 extends TestResourceBase
diff --git a/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/nestedpackage2/NestedTestResource2.scala b/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/nestedpackage2/NestedTestResource2.scala
deleted file mode 100644
index 5fa354dd647..00000000000
--- a/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/nestedpackage2/NestedTestResource2.scala
+++ /dev/null
@@ -1,12 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.container.test.jars.jersey.resources.nestedpackage2
-
-import javax.ws.rs.Path
-
-import com.yahoo.container.test.jars.jersey.resources.TestResourceBase
-
-/**
- * @author tonytv
- */
-@Path("bundle-plugin-test/nested-test-resource2")
-class NestedTestResource2 extends TestResourceBase