aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csie...@apache.org
Subject [03/14] aries-jax-rs-whiteboard git commit: Can't use default web for the moment
Date Fri, 18 Aug 2017 14:01:52 GMT
Can't use default web for the moment


Project: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/commit/988a7cb6
Tree: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/tree/988a7cb6
Diff: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/diff/988a7cb6

Branch: refs/heads/master
Commit: 988a7cb6df47853bb03e9955129b5cf9eb238089
Parents: aaaff01
Author: Carlos Sierra <csierra@apache.org>
Authored: Thu Aug 17 10:49:51 2017 +0200
Committer: Carlos Sierra <csierra@apache.org>
Committed: Fri Aug 18 15:59:21 2017 +0200

----------------------------------------------------------------------
 .../whiteboard/activator/CXFJaxRsBundleActivator.java  | 13 -------------
 1 file changed, 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/988a7cb6/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/activator/CXFJaxRsBundleActivator.java
----------------------------------------------------------------------
diff --git a/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/activator/CXFJaxRsBundleActivator.java
b/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/activator/CXFJaxRsBundleActivator.java
index 15c142a..2338de8 100644
--- a/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/activator/CXFJaxRsBundleActivator.java
+++ b/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/activator/CXFJaxRsBundleActivator.java
@@ -24,8 +24,6 @@ import javax.ws.rs.client.ClientBuilder;
 import javax.ws.rs.ext.RuntimeDelegate;
 
 import org.apache.aries.jax.rs.whiteboard.internal.ClientBuilderFactory;
-import org.apache.aries.jax.rs.whiteboard.internal.DefaultWeb;
-import org.apache.aries.jax.rs.whiteboard.internal.Maps;
 import org.apache.aries.jax.rs.whiteboard.internal.Whiteboard;
 import org.apache.aries.osgi.functional.OSGi;
 import org.apache.aries.osgi.functional.OSGiResult;
@@ -39,8 +37,6 @@ import org.slf4j.LoggerFactory;
 import static org.apache.aries.jax.rs.whiteboard.internal.Whiteboard.createWhiteboard;
 import static org.apache.aries.osgi.functional.OSGi.configurations;
 import static org.apache.aries.osgi.functional.OSGi.register;
-import static org.osgi.service.jaxrs.whiteboard.JaxRSWhiteboardConstants.JAX_RS_APPLICATION_SELECT;
-import static org.osgi.service.jaxrs.whiteboard.JaxRSWhiteboardConstants.JAX_RS_RESOURCE;
 
 public class CXFJaxRsBundleActivator implements BundleActivator {
 
@@ -95,13 +91,4 @@ public class CXFJaxRsBundleActivator implements BundleActivator {
         }
     }
 
-    private static OSGi<?> registerDefaultWeb() {
-        Dictionary<String, Object> dictionary = new Hashtable<>();
-        dictionary.put(JAX_RS_APPLICATION_SELECT, "(osgi.jaxrs.name=.default)");
-        dictionary.put(JAX_RS_RESOURCE, "true");
-        dictionary.put(Constants.SERVICE_RANKING, -1);
-
-        return register(DefaultWeb.class, new DefaultWeb(), Maps.from(dictionary));
-    }
-
 }
\ No newline at end of file


Mime
View raw message