felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r786277 - /felix/trunk/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java
Date Thu, 18 Jun 2009 21:08:34 GMT
Author: gnodet
Date: Thu Jun 18 21:08:34 2009
New Revision: 786277

URL: http://svn.apache.org/viewvc?rev=786277&view=rev
Log:
Fix JAAS namespace handler

Modified:
    felix/trunk/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java

Modified: felix/trunk/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java
URL: http://svn.apache.org/viewvc/felix/trunk/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java?rev=786277&r1=786276&r2=786277&view=diff
==============================================================================
--- felix/trunk/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java
(original)
+++ felix/trunk/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java
Thu Jun 18 21:08:34 2009
@@ -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));



Mime
View raw message