You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andreas Bulling <sp...@phoenix.hadiko.de> on 2006/04/27 15:56:36 UTC
How to inject ASO in service?
Hi folks,
I've implemented the SecurityService I mentioned in a posting
some hours ago... At least I thought of having implemented it ;)
The problem is that I don't know how to access my visit-ASO
from within my service:
<set-object property="visit" value="service:visit"/>
in hivemodule.xml and an appropriate setter doesn't work :(
I've seen on the list that someone mentioned to inject
the ASO-Manager instead and get the ASO from there.
That probably works but is it possible to inject only
the ASO I need?
Thanks!
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: How to inject ASO in service?
Posted by "Kevin C. Dorff" <kc...@med.cornell.edu>.
Add to your service's .java
private ApplicationStateManager applicationStateManager;
public final void setApplicationStateManager(
final ApplicationStateManager applicationStateManager) {
this.applicationStateManager = applicationStateManager;
}
then when you want to get the ASO object
AsoName asoName = (AsoName) applicationStateManager.get("asoName");
Hope that helps.
Kevin
On 4/27/06, Andreas Bulling <sp...@phoenix.hadiko.de> wrote:
> Hi folks,
>
> I've implemented the SecurityService I mentioned in a posting
> some hours ago... At least I thought of having implemented it ;)
>
> The problem is that I don't know how to access my visit-ASO
> from within my service:
>
> <set-object property="visit" value="service:visit"/>
>
> in hivemodule.xml and an appropriate setter doesn't work :(
>
> I've seen on the list that someone mentioned to inject
> the ASO-Manager instead and get the ASO from there.
> That probably works but is it possible to inject only
> the ASO I need?
>
> Thanks!
> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org