incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r822644 - in /incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint: PassThroughMetadata.java reflect/MetadataUtil.java
Date Wed, 07 Oct 2009 10:23:35 GMT
Author: gnodet
Date: Wed Oct  7 10:23:35 2009
New Revision: 822644

URL: http://svn.apache.org/viewvc?rev=822644&view=rev
Log:
ARIES-4: Support for pass-through metadata

Modified:
    incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/PassThroughMetadata.java
    incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/reflect/MetadataUtil.java

Modified: incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/PassThroughMetadata.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/PassThroughMetadata.java?rev=822644&r1=822643&r2=822644&view=diff
==============================================================================
--- incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/PassThroughMetadata.java
(original)
+++ incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/PassThroughMetadata.java
Wed Oct  7 10:23:35 2009
@@ -19,13 +19,14 @@
 package org.apache.aries.blueprint;
 
 import org.osgi.service.blueprint.reflect.ComponentMetadata;
+import org.osgi.service.blueprint.reflect.Target;
 
 /**
  * Metadata used to bypass the creation of the object.
  * This is mostly usefull when creating custom namespace handlers
  * that end-up with already instanciated objects.
  */
-public interface PassThroughMetadata extends ComponentMetadata {
+public interface PassThroughMetadata extends ComponentMetadata, Target {
 
     Object getObject();
 

Modified: incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/reflect/MetadataUtil.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/reflect/MetadataUtil.java?rev=822644&r1=822643&r2=822644&view=diff
==============================================================================
--- incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/reflect/MetadataUtil.java
(original)
+++ incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/reflect/MetadataUtil.java
Wed Oct  7 10:23:35 2009
@@ -150,7 +150,7 @@
             return type.cast(new ReferenceMetadataImpl());
         } else if (CollectionMetadata.class.isAssignableFrom(type)) {
             return type.cast(new CollectionMetadataImpl());
-        } else if (PassThroughMetadataImpl.class.isAssignableFrom(type)) {
+        } else if (PassThroughMetadata.class.isAssignableFrom(type)) {
             return type.cast(new PassThroughMetadataImpl());
         } else {
             throw new IllegalArgumentException("Unsupport metadata type: " + (type != null
? type.getName() : null));



Mime
View raw message