Hi,

Thanks for the answer!

We need this to configure a servlet in our filter chain, which expects a 
parameter for where to find its resources - including the context path.
Specifically, this is for the VaadinServlet, which we run in magnolia 4.4 as we 
already wrote some Vaadin-based UIs (in order to be prepared for magnolia 5 - 
we like to be ahead of the game :-)

I know I could subclass the servlet, but I was hoping just to do it in the 
install handler, and magnolia.webapp via SystemProperties sounds like the 
perfect answer. Thanks!

Regards from Vienna,

Richard

(iPhone)

On 22.10.2013, at 22:45, "Nils Breunese" 
<[email protected]<mailto:[email protected]>> wrote:

Matteo Pelucco wrote:

..To complete this thread, retrieve it with:

String contextName = 
info.magnolia.cms.core.SystemProperty.getProperty("magnolia.webapp");

The 
SystemProperty<http://nexus.magnolia-cms.com/content/sites/magnolia.public.sites/ref/4.5.12/apidocs/info/magnolia/cms/core/SystemProperty.html>
 class is deprecated as of Magnolia 4.5 and you should be using 
MagnoliaConfigurationProperties<http://nexus.magnolia-cms.com/content/sites/magnolia.public.sites/ref/4.5.12/apidocs/info/magnolia/init/MagnoliaConfigurationProperties.html>
 from now on. However, I'm not sure if you can grab a 
MagnoliaConfigurationProperties instance from the IoC container at version 
handler time.

I'm actually curious what you want to use the web application context for in 
your version handler. Maybe it's none of my business, but I can't think of a 
good reason right now (although lost of them might exist).

Nils.


________________________________
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: 
<[email protected]<mailto:[email protected]>>
----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to