geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1136333 - /geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/ResourceRefBuilder.java
Date Thu, 16 Jun 2011 09:07:57 GMT
Author: genspring
Date: Thu Jun 16 09:07:57 2011
New Revision: 1136333

URL: http://svn.apache.org/viewvc?rev=1136333&view=rev
Log:
ManagedBean injection should consider the field type.

Modified:
    geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/ResourceRefBuilder.java

Modified: geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/ResourceRefBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/ResourceRefBuilder.java?rev=1136333&r1=1136332&r2=1136333&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/ResourceRefBuilder.java
(original)
+++ geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/ResourceRefBuilder.java
Thu Jun 16 09:07:57 2011
@@ -212,6 +212,9 @@ public class ResourceRefBuilder extends 
         } else if (iface.isAnnotationPresent(ManagedBean.class)) {
             ManagedBean managed = iface.getAnnotation(ManagedBean.class);
             String beanName = managed.value().length() == 0 ? iface.getSimpleName() : managed.value();
+            if (iface != null) {
+                beanName = beanName + "!" + iface.getName();
+            }
             return new JndiReference("java:module/" + beanName);        
         } else {
             //determine jsr-77 type from interface



Mime
View raw message