aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From timothyjw...@apache.org
Subject svn commit: r1241057 - /aries/trunk/transaction/transaction-blueprint/src/main/java/org/apache/aries/transaction/parsing/TxElementHandler.java
Date Mon, 06 Feb 2012 16:07:43 GMT
Author: timothyjward
Date: Mon Feb  6 16:07:43 2012
New Revision: 1241057

URL: http://svn.apache.org/viewvc?rev=1241057&view=rev
Log:
ARIES-626: Avoid importing blueprint internal package "org.apache.aries.blueprint.reflect"

Modified:
    aries/trunk/transaction/transaction-blueprint/src/main/java/org/apache/aries/transaction/parsing/TxElementHandler.java

Modified: aries/trunk/transaction/transaction-blueprint/src/main/java/org/apache/aries/transaction/parsing/TxElementHandler.java
URL: http://svn.apache.org/viewvc/aries/trunk/transaction/transaction-blueprint/src/main/java/org/apache/aries/transaction/parsing/TxElementHandler.java?rev=1241057&r1=1241056&r2=1241057&view=diff
==============================================================================
--- aries/trunk/transaction/transaction-blueprint/src/main/java/org/apache/aries/transaction/parsing/TxElementHandler.java
(original)
+++ aries/trunk/transaction/transaction-blueprint/src/main/java/org/apache/aries/transaction/parsing/TxElementHandler.java
Mon Feb  6 16:07:43 2012
@@ -35,7 +35,7 @@ import org.apache.aries.blueprint.Interc
 import org.apache.aries.blueprint.NamespaceHandler;
 import org.apache.aries.blueprint.ParserContext;
 import org.apache.aries.blueprint.PassThroughMetadata;
-import org.apache.aries.blueprint.reflect.PassThroughMetadataImpl;
+import org.apache.aries.blueprint.mutable.MutablePassThroughMetadata;
 import org.apache.aries.transaction.BundleWideTxData;
 import org.apache.aries.transaction.Constants;
 import org.apache.aries.transaction.TxComponentMetaDataHelper;
@@ -102,8 +102,11 @@ public class TxElementHandler implements
             if(n == null || Boolean.parseBoolean(n.getNodeValue())) {
                 //We need to register a bean processor to add annotation-based config
                 if(!!!cdr.containsComponentDefinition(Constants.ANNOTATION_PARSER_BEAN_NAME))
{
-                    cdr.registerComponentDefinition(new PassThroughMetadataImpl(Constants.ANNOTATION_PARSER_BEAN_NAME,
-                	        new AnnotationParser(cdr, interceptor, metaDataHelper)));
+                	
+                	MutablePassThroughMetadata mptmd = pc.createMetadata(MutablePassThroughMetadata.class);
+                	mptmd.setId(Constants.ANNOTATION_PARSER_BEAN_NAME);
+                	mptmd.setObject(new AnnotationParser(cdr, interceptor, metaDataHelper));
+                    cdr.registerComponentDefinition(mptmd);
                 }
             }
         }



Mime
View raw message