That will work but is a bit dangerous; if you inject a global object,
its not too bad, but if you inject a session-scoped object into a
singleton service (not a threaded or pooled service), then a single
instance of the ASO will be shared across threads, which is not what
you want.
A more elaborat
Hi,
i tried this.
I added this in hivemodule.xml:
interface="org.apache.tapestry.engine.IEngineService">
value="aso:shared-resource-provider"/>
interface="org.a
Hello
Dmitry Gusev <[EMAIL PROTECTED]> wrote:
> Here is an example of creating ApplicationStateObjectProvider which allows
> you to inject ASOs via "aso" prefix, for instance:
Thank you very much, that should be exactly what I was looking for.
I just thought that getting an ASO object in a servi
Here is an example of creating ApplicationStateObjectProvider which allows
you to inject ASOs via "aso" prefix, for instance:
In order to do this we need to define an "aso" prefix for Application State
Objects. We can do it li
Hello
Quoting Raul Raja Martinez <[EMAIL PROTECTED]>:
> I had the inverse problem and I solved using Hiveutils, its
> objectbuilder allows you to inject services and objects into POJOS that
> then can be used as ASOs.
Thanks for the hint, I will have a look at it.
Regards, Christian
---
I don't know if this might help you but just in case take a look at:
I had the inverse problem and I solved using Hiveutils, its
objectbuilder allows you to inject services and objects into POJOS that
then can be used as ASOs.
Take a look at the posting in this list whit title:
PROBLEM SOLV
Hello,
injecting an ASO into a page or component is simple, but I cannot
figure out how to inject one into a service. Can anyone tell me
what to do?
Thanke
Regards, Christian
P.S.: Injecting the ApplicationStateManager and obtaining the state
object from the it by name works fine, but this is n