Fix JAAS namespace handler

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@786277 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java b/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java
index 324bc26..de73bc1 100644
--- a/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java
+++ b/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java
@@ -62,7 +62,7 @@
 
     public ComponentMetadata parseConfig(Element element, ParserContext context) {
         MutableBeanMetadata bean = context.createMetadata(MutableBeanMetadata.class);
-        bean.setClassName(Config.class.getName());
+        bean.setRuntimeClass(Config.class);
         String name = element.getAttribute("name");
         bean.addProperty("bundleContext", createRef(context, "blueprintBundleContext"));
         bean.addProperty("name", createValue(context, name));
@@ -76,7 +76,7 @@
             for (int i = 0; i < childElements.getLength(); ++i) {
                 Element childElement = (Element) childElements.item(i);
                 MutableBeanMetadata md = context.createMetadata(MutableBeanMetadata.class);
-                md.setClassName(Module.class.getName());
+                md.setRuntimeClass(Module.class);
                 md.addProperty("className", createValue(context, childElement.getAttribute("className")));
                 if (childElement.getAttribute("flags") != null) {
                     md.addProperty("flags", createValue(context, childElement.getAttribute("flags")));
@@ -100,7 +100,7 @@
 
     public ComponentMetadata parseKeystore(Element element, ParserContext context) {
         MutableBeanMetadata bean = context.createMetadata(MutableBeanMetadata.class);
-        bean.setClassName(ResourceKeystoreInstance.class.getName());
+        bean.setRuntimeClass(ResourceKeystoreInstance.class);
         // Parse name
         String name = element.getAttribute("name");
         bean.addProperty("name", createValue(context, name));