Author: richard.opalka(a)jboss.com
Date: 2011-07-27 08:22:45 -0400 (Wed, 27 Jul 2011)
New Revision: 14753
Modified:
common/trunk/src/main/java/org/jboss/ws/common/injection/finders/InjectionMethodFinder.java
Log:
[JBWS-3334] fixing injection method lookup algorithm
Modified:
common/trunk/src/main/java/org/jboss/ws/common/injection/finders/InjectionMethodFinder.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/injection/finders/InjectionMethodFinder.java 2011-07-27
12:00:27 UTC (rev 14752)
+++
common/trunk/src/main/java/org/jboss/ws/common/injection/finders/InjectionMethodFinder.java 2011-07-27
12:22:45 UTC (rev 14753)
@@ -61,7 +61,9 @@
@Override
public boolean matches(final Method method)
{
- if (method.getName().equals(injectionMD.getTargetName()))
+ final String targetName = injectionMD.getTargetName();
+ final String methodName = "set" + targetName.substring(0,
1).toUpperCase() + targetName.substring(1);
+ if (method.getName().equals(methodName))
{
if (injectionMD.getValueClass() != null)
{