Re: detecting execution mode

2013-01-15 Thread Dmitry Gusev
... > if (exeMode.contains(SymbolConstants.PRODUCTION_MODE)) { > - Original Message - > From: Lutz Hühnken > To: Tapestry users > Sent: Tuesday, January 15, 2013 10:15 AM > Subject: Re: detecting execution mode > > > Hi John, > > you should be able to inject

Re: detecting execution mode

2013-01-15 Thread John
Subject: Re: detecting execution mode Hi John, you should be able to inject its value into your class with @Symbol("tapestry.production-mode") See org.apache.tapestry5.ioc.annotations.Symbol for documentation and org.apache.tapestry5.SymbolConstants for names. Hth, Lutz

Re: detecting execution mode

2013-01-15 Thread Muhammad Gelbana
I would recommend using the static variable *SymbolConstants.PRODUCTION_MODE * instead of *tapestry.production-mode* On Tue, Jan 15, 2013 at 12:15 PM, Lutz Hühnken wrote: > Hi John, > > you should be able to inject its value into your class with > @Symbol("tapestry.production-mode") > > See org.a

Re: detecting execution mode

2013-01-15 Thread Lutz Hühnken
Hi John, you should be able to inject its value into your class with @Symbol("tapestry.production-mode") See org.apache.tapestry5.ioc.annotations.Symbol for documentation and org.apache.tapestry5.SymbolConstants for names. Hth, Lutz On Tue, Jan 15, 2013 at 11:07 AM, John wrote: > Hi, > > What

Re: detecting execution mode

2013-01-15 Thread Dmitry Gusev
Hi, you can inject a symbol EXECUTION_MODE: http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/SymbolConstants.html#EXECUTION_MODE http://tapestry.apache.org/symbols.html On Tue, Jan 15, 2013 at 2:07 PM, John wrote: > Hi, > > What is a neat way to detect the execution mode? I want to

detecting execution mode

2013-01-15 Thread John
Hi, What is a neat way to detect the execution mode? I want to know if my service class is running with development mode so I can switch a feature off. John