Re: [t4] How do I inject arbitrary services into a custom service encoder?

2007-08-07 Thread Olle Hallin
Hi, My problems has nothing to do with Spring. The problem is that the HiveMind's Lightweight Instance Initialization ( http://hivemind.apache.org/hivemind1/instance-initialization.html) simply is not usable in cases like this. So I rewrote hivemodule.xml this way: Encode/decode current f

Re: [t4] How do I inject arbitrary services into a custom service encoder?

2007-08-07 Thread Lutz Hühnken
Hi there, to me it seems the error message indicates that you don't have a method "setSpringContext" in your CurrentFooEncoder. I think hivemind will try to set that property using that method. Or maybe you need a constructor with an argument of that type. For a slightly different approach you mi

Re: [t4] How do I inject arbitrary services into a custom service encoder?

2007-08-07 Thread Olle Hallin
Hi again, I tried your suggestion, but I get an ApplicationRuntimeException: No property editor exists for property springContext of class foo.web.CurrentFooEncoder. What else must I do? It smells writing some glue code... Regards, Olle 2007/8/7, Richard Kirby <[EMAIL PROTECTED]>: > > Hi Olle,

Re: [t4] How do I inject arbitrary services into a custom service encoder?

2007-08-07 Thread Richard Kirby
Hi Olle, Try object="instance:CurrentFooEncoder,springContext=spring:springContext" /> Basically the instance: allows for properties to be set using comma separated property=value Hope that works for you Richard Olle Hallin wrote: Hi! I have written a simple (Tapestry4) custom service e

[t4] How do I inject arbitrary services into a custom service encoder?

2007-08-07 Thread Olle Hallin
Hi! I have written a simple (Tapestry4) custom service encoder (CurrentFooEncoder) which works ok for now. It inserts/removes "/foo" first in the encoding.getServletPath(). It is declared in hivemodule.xml like Now I wan't my CurrentFooEncoder to do some use