felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1762330 - /felix/trunk/converter/serializer/src/main/java/org/apache/felix/serializer/impl/Activator.java
Date Mon, 26 Sep 2016 12:12:14 GMT
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);



Mime
View raw message