Skip to content

Commit

Permalink
Method parameter injection was not supported, now functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Jul 23, 2013
1 parent 8c77490 commit 5082335
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,13 @@ public Object create(Bean<Object> bean, CreationalContext<Object> creationalCont
Class<?> serviceType = null;
if (member instanceof Method)
{
serviceType = ((Method) member).getReturnType();
if (annotated instanceof AnnotatedParameter)
{
serviceType = ((Method) member).getParameterTypes()[((AnnotatedParameter<?>) annotated)
.getPosition()];
}
else
serviceType = ((Method) member).getReturnType();
}
else if (member instanceof Field)
{
Expand Down

0 comments on commit 5082335

Please sign in to comment.