You mean like this:

......
Registry reg=servletContext.getAttribute(REGISTRY_CONTEXT_NAME);
MyserviceInterface
myInjectedServiceInstance=reg.getService("MyserviceID",MyserviceInterface.class);
......

but how could i get the singleton ServletContext object outside tapestry, i
couldn't find any static method to reach this?



Christophe Cordenier wrote:
> 
> Hi
> 
> Tapestry Registry allows you to access all the services your have
> declared,
> it is available in the servlet context under this name :
> 
>     public static final String REGISTRY_CONTEXT_NAME =
> "org.apache.tapestry5.application-registry";
> 
> 2010/6/29 Jimmy.Lew <jae...@aol.com>
> 
>>
>> Does Tapestry IOC module  provide API to allow other frameworks to access
>> injected service instance? e.g., i want to use DWR to check a injected
>> session manager service in a tapestry page. Appreciate somebody could
>> give
>> a
>> hint.
>> --
>> View this message in context:
>> http://old.nabble.com/Is-there-anyway-to-access-injected-service-instance-out-of-box--tp29020920p29020920.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
> 
> 
> -- 
> Regards,
> Christophe Cordenier.
> 
> Committer on Apache Tapestry 5
> Co-Creator of wooki @wookicentral.com
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Is-there-anyway-to-access-injected-service-instance-out-of-box--tp29020920p29023334.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to