geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r779767 - in /geronimo/sandbox/blueprint: blueprint-cm/src/main/java/org/apache/geronimo/blueprint/compendium/cm/CmNamespaceHandler.java blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MetadataUtil.java
Date Thu, 28 May 2009 20:56:20 GMT
Author: gawor
Date: Thu May 28 20:56:19 2009
New Revision: 779767

URL: http://svn.apache.org/viewvc?rev=779767&view=rev
Log:
maybe getBeanProperty is not that useful after all

Modified:
    geronimo/sandbox/blueprint/blueprint-cm/src/main/java/org/apache/geronimo/blueprint/compendium/cm/CmNamespaceHandler.java
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MetadataUtil.java

Modified: geronimo/sandbox/blueprint/blueprint-cm/src/main/java/org/apache/geronimo/blueprint/compendium/cm/CmNamespaceHandler.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-cm/src/main/java/org/apache/geronimo/blueprint/compendium/cm/CmNamespaceHandler.java?rev=779767&r1=779766&r2=779767&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-cm/src/main/java/org/apache/geronimo/blueprint/compendium/cm/CmNamespaceHandler.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-cm/src/main/java/org/apache/geronimo/blueprint/compendium/cm/CmNamespaceHandler.java
Thu May 28 20:56:19 2009
@@ -200,9 +200,13 @@
     }
     
     private String getPlaceholderProperty(BeanMetadata bean, String name) {
-        BeanProperty property = MetadataUtil.getBeanProperty(bean, name);
-        ValueMetadata value = (ValueMetadata) property.getValue();
-        return value.getStringValue();
+        for (BeanProperty property : bean.getProperties()) {
+            if (name.equals(property.getName())) {
+                ValueMetadata value = (ValueMetadata) property.getValue();
+                return value.getStringValue();
+            }
+        }
+        return null;
     }
     
     private Metadata parseDefaultProperties(ParserContext context, MutableBeanMetadata enclosingComponent,
Element element) {

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MetadataUtil.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MetadataUtil.java?rev=779767&r1=779766&r2=779767&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MetadataUtil.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/reflect/MetadataUtil.java
Thu May 28 20:56:19 2009
@@ -190,15 +190,6 @@
             return object1.getIndex() - object2.getIndex();
         }        
     }
-    
-    public static BeanProperty getBeanProperty(BeanMetadata metadata, String name) {
-        for (BeanProperty property : metadata.getProperties()) {
-            if (name.equals(property.getName())) {
-                return property;
-            }
-        }
-        return null;
-    }
-    
+        
 }
 



Mime
View raw message