...
> 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
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
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
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
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
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