Index: oak-mk/src/main/resources/OSGI-INF/metatype/metatype.properties
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- oak-mk/src/main/resources/OSGI-INF/metatype/metatype.properties	(revision )
+++ oak-mk/src/main/resources/OSGI-INF/metatype/metatype.properties	(revision )
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+oak.mk.label=Oak MicroKernal Service
+oak.mk.description=Default MicroKernal implementation
+
+oak.mk.name.name = Name
+oak.mk.name.description = The unique name of this instance
+
+oak.mk.homeDir.name = Home directory
+oak.mk.homeDir.description = The home directory (in-memory if not set)
+
+
+
Index: oak-mk/src/main/java/org/apache/jackrabbit/mk/osgi/MicroKernelService.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
<+>/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements.  See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License.  You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage org.apache.jackrabbit.mk.osgi;\n\nimport org.apache.felix.scr.annotations.Activate;\nimport org.apache.felix.scr.annotations.Component;\nimport org.apache.felix.scr.annotations.Deactivate;\nimport org.apache.felix.scr.annotations.Property;\nimport org.apache.felix.scr.annotations.Service;\nimport org.apache.jackrabbit.mk.api.MicroKernel;\nimport org.apache.jackrabbit.mk.core.MicroKernelImpl;\nimport org.osgi.service.component.ComponentContext;\n\n@Component\n@Service(MicroKernel.class)\npublic class MicroKernelService extends MicroKernelImpl {\n\n    @Property(description=\"The unique name of this instance\")\n    public static final String NAME = \"name\";\n\n    @Property(description=\"The home directory (in-memory if not set)\")\n    public static final String HOME_DIR = \"homeDir\";\n\n    private String name;\n\n    @Override\n    public String toString() {\n        return name;\n    }\n\n    @Activate\n    public void activate(ComponentContext context) {\n        Object homeDir = context.getProperties().get(HOME_DIR);\n        name = \"\" + context.getProperties().get(NAME);\n        if (homeDir != null) {\n            init(homeDir.toString());\n        }\n    }\n\n    @Deactivate\n    public void deactivate() {\n        dispose();\n    }\n\n}\n
===================================================================
--- oak-mk/src/main/java/org/apache/jackrabbit/mk/osgi/MicroKernelService.java	(date 1344613995000)
+++ oak-mk/src/main/java/org/apache/jackrabbit/mk/osgi/MicroKernelService.java	(revision )
@@ -25,15 +25,17 @@
 import org.apache.jackrabbit.mk.core.MicroKernelImpl;
 import org.osgi.service.component.ComponentContext;
 
-@Component
+import java.util.Map;
+
+@Component(metatype = true,label = "%oak.mk.label", description = "%oak.mk.description")
 @Service(MicroKernel.class)
 public class MicroKernelService extends MicroKernelImpl {
 
-    @Property(description="The unique name of this instance")
-    public static final String NAME = "name";
+    @Property
+    public static final String NAME = "oak.mk.name";
 
-    @Property(description="The home directory (in-memory if not set)")
-    public static final String HOME_DIR = "homeDir";
+    @Property
+    public static final String HOME_DIR = "oak.mk.homeDir";
 
     private String name;
 
@@ -43,9 +45,9 @@
     }
 
     @Activate
-    public void activate(ComponentContext context) {
-        Object homeDir = context.getProperties().get(HOME_DIR);
-        name = "" + context.getProperties().get(NAME);
+    public void activate(Map<String,?> config) {
+        Object homeDir = config.get(HOME_DIR);
+        name = "" + config.get(NAME);
         if (homeDir != null) {
             init(homeDir.toString());
         }
