geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r771435 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/Parser.java
Date Mon, 04 May 2009 20:44:18 GMT
Author: gawor
Date: Mon May  4 20:44:17 2009
New Revision: 771435

URL: http://svn.apache.org/viewvc?rev=771435&view=rev
Log:
create right metadata for idrefs

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

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/Parser.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/Parser.java?rev=771435&r1=771434&r2=771435&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/Parser.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/Parser.java
Mon May  4 20:44:17 2009
@@ -50,6 +50,7 @@
 import org.apache.geronimo.blueprint.NamespaceHandlerRegistry;
 import org.apache.geronimo.blueprint.ExtendedComponentDefinitionRegistry;
 import org.apache.geronimo.blueprint.namespace.ParserContextImpl;
+import org.apache.geronimo.blueprint.reflect.IdRefMetadataImpl;
 import org.apache.geronimo.blueprint.reflect.ListenerImpl;
 import org.apache.geronimo.blueprint.reflect.MetadataUtil;
 import org.apache.geronimo.blueprint.reflect.RefCollectionMetadataImpl;
@@ -1055,9 +1056,9 @@
             } else if (nodeNameEquals(element, IDREF_ELEMENT)) {
                 String component = element.getAttribute(COMPONENT_ATTRIBUTE);
                 if (component == null || component.length() == 0) {
-                    throw new ComponentDefinitionException("Element " + REF_ELEMENT + " must
have a valid " + COMPONENT_ATTRIBUTE + " attribute");
+                    throw new ComponentDefinitionException("Element " + IDREF_ELEMENT + "
must have a valid " + COMPONENT_ATTRIBUTE + " attribute");
                 }
-                return new RefMetadataImpl(component);
+                return new IdRefMetadataImpl(component);
             } else if (nodeNameEquals(element, LIST_ELEMENT)) {
                 return parseList(element, enclosingComponent);
             } else if (nodeNameEquals(element, SET_ELEMENT)) {



Mime
View raw message