Q:

Spring lookup method injection with parameters

Is there a way to use Spring lookup method inject with parameters? For example, I want to be able to instantiate prototype-scoped beans while passing them arbitrary parameters via constructor.

A:

It looks like this vital feature was finally added in Spring 4.1.0.RC2.  I have tested it and it seems to work.
It was added as part of JIRA ticket SPR-7431 ("Passing lookup-method arguments to created bean constructor"):

<lookup-method/> should allow specifying any number of parameters. These parameters should be passed directly to the constructor of the newly created bean.

For more info on how the feature was finally added, this blog post was written by the guy who opened the JIRA ticket.

