On Mon, 23 Sep 2013 07:35:07 -0300, Martin Kersten <martin.kersten...@gmail.com> wrote:

Hi there,

Hi!

myMethod(@Inject Session session, @Inject SomeOtherService service, String myParameter);

IocMethodInvoker.invoke(object, "myMethod", "string parameter");
-> So the ioc looks for the longest method that can resolve all annotated
parameters and the one that are not annotated are filled up with the
parameter provided in the same order.

Is there anything like that?

Nope and I think it's way too specific to your use case for Tapestry-IoC support it itself. On the other hand, you can implement what you want combining Tapestry-IoC and some reflection. You can inject ObjectLocator and use its methods to look up Tapestry-IoC services by type (optionally combined with marker annotations) or id, just check its methods. If you're creating the Registry instance yourself, Registry is a subinterface of ObjectLocator.

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to