Thanks. my solution
@Inject @Symbol(SymbolConstants.EXECUTION_MODE) private String exeMode; ... 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 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 <j...@quivinco.com> wrote: > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org