geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r565914 - /geronimo/server/branches/2.0/modules/geronimo-naming-builder/src/main/java/org/apache/geronimo/naming/deployment/EnvironmentEntryBuilder.java
Date Tue, 14 Aug 2007 21:13:51 GMT
Author: gawor
Date: Tue Aug 14 14:13:51 2007
New Revision: 565914

URL: http://svn.apache.org/viewvc?view=rev&rev=565914
Log:
add injection target entries to existing env-entry entries (GERONIMO-3411)

Modified:
    geronimo/server/branches/2.0/modules/geronimo-naming-builder/src/main/java/org/apache/geronimo/naming/deployment/EnvironmentEntryBuilder.java

Modified: geronimo/server/branches/2.0/modules/geronimo-naming-builder/src/main/java/org/apache/geronimo/naming/deployment/EnvironmentEntryBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0/modules/geronimo-naming-builder/src/main/java/org/apache/geronimo/naming/deployment/EnvironmentEntryBuilder.java?view=diff&rev=565914&r1=565913&r2=565914
==============================================================================
--- geronimo/server/branches/2.0/modules/geronimo-naming-builder/src/main/java/org/apache/geronimo/naming/deployment/EnvironmentEntryBuilder.java
(original)
+++ geronimo/server/branches/2.0/modules/geronimo-naming-builder/src/main/java/org/apache/geronimo/naming/deployment/EnvironmentEntryBuilder.java
Tue Aug 14 14:13:51 2007
@@ -148,6 +148,12 @@
                 for (EnvEntryType envEntry : envEntries) {
                     if (getStringValue(envEntry.getEnvEntryName()).equals(resourceName))
{
                         exists = true;
+                        if (method != null || field != null) {
+                            InjectionTargetType[] targets = envEntry.getInjectionTargetArray();
+                            if (!hasTarget(method, field, targets)) {
+                                configureInjectionTarget(envEntry.addNewInjectionTarget(),
method, field);
+                            }
+                        }
                         break;
                     }
                 }



Mime
View raw message