geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r773163 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintObjectRecipe.java
Date Sat, 09 May 2009 05:04:06 GMT
Author: gawor
Date: Sat May  9 05:04:06 2009
New Revision: 773163

URL: http://svn.apache.org/viewvc?rev=773163&view=rev
Log:
not needed

Modified:
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintObjectRecipe.java

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintObjectRecipe.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintObjectRecipe.java?rev=773163&r1=773162&r2=773163&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintObjectRecipe.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintObjectRecipe.java
Sat May  9 05:04:06 2009
@@ -153,11 +153,7 @@
         List<Object> args = new ArrayList<Object>();
         for (int i = 0; beanArguments != null && i < beanArguments.size(); i++)
{
             BeanArgument argument = beanArguments.get(i);
-            String valueType = argument.getValueType();
-            if (valueType == null) {
-                // check if valueType is set on the <value/> element
-                valueType = getValueType(argument.getValue());
-            }            
+            String valueType = argument.getValueType();          
             Class type = loadClass(valueType);
             Object obj = arguments.get(i);
             if (type != null) {
@@ -206,15 +202,7 @@
         }
         return true;
     }
-    
-    private String getValueType(Metadata metadata) {
-        if (metadata instanceof ValueMetadata) {
-            ValueMetadata stringValue = (ValueMetadata) metadata;
-            return stringValue.getTypeName();
-        }
-        return null;
-    }
-    
+        
     private Class loadClass(String typeName) throws ConstructionException {
         if (typeName == null) {
             return null;



Mime
View raw message