[jboss-cvs] JBossAS SVN: r82313 - projects/ejb3/trunk/core/src/main/java/org/jboss/injection.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 16 08:44:23 EST 2008
Author: wolfc
Date: 2008-12-16 08:44:23 -0500 (Tue, 16 Dec 2008)
New Revision: 82313
Modified:
projects/ejb3/trunk/core/src/main/java/org/jboss/injection/ResourceHandler.java
Log:
EJBTHREE-1635: if mappedName is set for a resource-ref of type URL, then create a value injector
Modified: projects/ejb3/trunk/core/src/main/java/org/jboss/injection/ResourceHandler.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/injection/ResourceHandler.java 2008-12-16 13:37:46 UTC (rev 82312)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/injection/ResourceHandler.java 2008-12-16 13:44:23 UTC (rev 82313)
@@ -70,7 +70,7 @@
this.checkEncInjectors = checkEncInjectors;
}
- private void createURLInjector(String encName, String mappedName, InjectionContainer container)
+ private static void createURLInjector(String encName, String mappedName, InjectionContainer container)
{
assert encName.length() > 0 : "encName is empty";
assert mappedName.length() > 0 : "mappedName is empty";
@@ -182,7 +182,10 @@
}
else
{
- container.getEncInjectors().put(encName, new LinkRefEncInjector(encName, envRef.getMappedName(), "<resource-ref>"));
+ if(envRef.getType().equals(URL.class.getName()))
+ createURLInjector(encName, mappedName, container);
+ else
+ container.getEncInjectors().put(encName, new LinkRefEncInjector(encName, envRef.getMappedName(), "<resource-ref>"));
}
InjectionUtil.injectionTarget(encName, envRef, container, container.getEncInjections());
}
More information about the jboss-cvs-commits
mailing list