felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1687648 - /felix/trunk/http/bridge/src/main/java/org/apache/felix/http/bridge/internal/BridgeActivator.java
Date Thu, 25 Jun 2015 21:13:08 GMT
Author: cziegeler
Date: Thu Jun 25 21:13:08 2015
New Revision: 1687648

URL: http://svn.apache.org/r1687648
Log:
Update description

Modified:
    felix/trunk/http/bridge/src/main/java/org/apache/felix/http/bridge/internal/BridgeActivator.java

Modified: felix/trunk/http/bridge/src/main/java/org/apache/felix/http/bridge/internal/BridgeActivator.java
URL: http://svn.apache.org/viewvc/felix/trunk/http/bridge/src/main/java/org/apache/felix/http/bridge/internal/BridgeActivator.java?rev=1687648&r1=1687647&r2=1687648&view=diff
==============================================================================
--- felix/trunk/http/bridge/src/main/java/org/apache/felix/http/bridge/internal/BridgeActivator.java
(original)
+++ felix/trunk/http/bridge/src/main/java/org/apache/felix/http/bridge/internal/BridgeActivator.java
Thu Jun 25 21:13:08 2015
@@ -36,24 +36,27 @@ public final class BridgeActivator exten
 
     private static final String VENDOR = "The Apache Software Foundation";
 
+    private static final String MARKER_PROP = "http.felix.dispatcher";
+
     @Override
     protected void doStart() throws Exception
     {
         super.doStart();
 
         // dispatcher servlet
+        final Object servlet = getDispatcherServlet();
         Hashtable<String, Object> props = new Hashtable<String, Object>();
-        props.put("http.felix.dispatcher", getDispatcherServlet().getClass().getName());
-        props.put(Constants.SERVICE_DESCRIPTION, "Dispatcher for bridged request handling");
+        props.put(MARKER_PROP, servlet.getClass().getName());
+        props.put(Constants.SERVICE_DESCRIPTION, "Apache Felix Http Dispatcher for bridged
request handling");
         props.put(Constants.SERVICE_VENDOR, VENDOR);
-        getBundleContext().registerService(HttpServlet.class.getName(), getDispatcherServlet(),
props);
+        getBundleContext().registerService(HttpServlet.class.getName(), servlet, props);
 
         // Http Session event dispatcher
         final EventDispatcher dispatcher = getEventDispatcher();
         dispatcher.setActive(true);
         props = new Hashtable<String, Object>();
-        props.put("http.felix.dispatcher", dispatcher.getClass().getName());
-        props.put(Constants.SERVICE_DESCRIPTION, "Dispatcher for bridged HttpSession events");
+        props.put(MARKER_PROP, dispatcher.getClass().getName());
+        props.put(Constants.SERVICE_DESCRIPTION, "Apache Felix Http Dispatcher for bridged
event handling");
         props.put(Constants.SERVICE_VENDOR, VENDOR);
         getBundleContext().registerService(EventListener.class.getName(), dispatcher, props);
 
@@ -66,6 +69,6 @@ public final class BridgeActivator exten
             this.getHttpServiceController().setProperties(serviceRegProps);
         }
 
-        SystemLogger.info("Started bridged http service");
+        SystemLogger.info("Started bridged http services");
     }
 }



Mime
View raw message