openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r729691 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
Date Sat, 27 Dec 2008 22:37:31 GMT
Author: gerdogdu
Date: Sat Dec 27 14:37:30 2008
New Revision: 729691

URL: http://svn.apache.org/viewvc?rev=729691&view=rev
Log:
XML Resolution parameter is added.

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java?rev=729691&r1=729690&r2=729691&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
Sat Dec 27 14:37:30 2008
@@ -17,7 +17,6 @@
 package org.apache.webbeans.container;
 
 import java.lang.annotation.Annotation;
-import java.lang.reflect.Array;
 import java.lang.reflect.Type;
 import java.util.Arrays;
 import java.util.HashSet;
@@ -143,7 +142,8 @@
 						Type[] actualArgs = null;
 						if(ClassUtil.isAssignable(apiType,componentApiType))
 						{
-							if(component instanceof ProducerComponentImpl)
+							/*Annotated Producer method or XML Defined Producer Method*/
+							if(ProducerComponentImpl.class.isAssignableFrom(component.getClass()))
 							{
 								actualArgs = ((ProducerComponentImpl<?>)component).getActualTypeArguments();
 								if(Arrays.equals(actualArgs, actualTypeArguments))
@@ -288,10 +288,5 @@
 		remainingSet = null;
 		
 		return result;
-	}		
-	
-	public static void main(String[] args)
-	{
-		System.out.println(Array.newInstance(Integer.class, 0).getClass());
-	}
+	}			
 }
\ No newline at end of file



Mime
View raw message