You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by da...@apache.org on 2016/09/26 12:12:14 UTC

svn commit: r1762330 - /felix/trunk/converter/serializer/src/main/java/org/apache/felix/serializer/impl/Activator.java

Author: davidb
Date: Mon Sep 26 12:12:13 2016
New Revision: 1762330

URL: http://svn.apache.org/viewvc?rev=1762330&view=rev
Log:
Rename osgi.codec.mimetype property to mimetype

Modified:
    felix/trunk/converter/serializer/src/main/java/org/apache/felix/serializer/impl/Activator.java

Modified: felix/trunk/converter/serializer/src/main/java/org/apache/felix/serializer/impl/Activator.java
URL: http://svn.apache.org/viewvc/felix/trunk/converter/serializer/src/main/java/org/apache/felix/serializer/impl/Activator.java?rev=1762330&r1=1762329&r2=1762330&view=diff
==============================================================================
--- felix/trunk/converter/serializer/src/main/java/org/apache/felix/serializer/impl/Activator.java (original)
+++ felix/trunk/converter/serializer/src/main/java/org/apache/felix/serializer/impl/Activator.java Mon Sep 26 12:12:13 2016
@@ -29,13 +29,13 @@ public class Activator implements Bundle
     @Override
     public void start(BundleContext context) throws Exception {
         Dictionary<String, Object> jsonProps = new Hashtable<>();
-        jsonProps.put("osgi.codec.mimetype", new String[] {
+        jsonProps.put("mimetype", new String[] {
                 "application/json", "application/x-javascript", "text/javascript",
                 "text/x-javascript", "text/x-json" });
         context.registerService(Serializer.class, new JsonSerializerImpl(), jsonProps);
 
         Dictionary<String, Object> yamlProps = new Hashtable<>();
-        yamlProps.put("osgi.codec.mimetype", new String[] {
+        yamlProps.put("mimetype", new String[] {
                 "text/yaml", "text/x-yaml", "application/yaml",
                 "application/x-yaml" });
         context.registerService(Serializer.class, new YamlSerializerImpl(), yamlProps);