@Value("${tapestry.production-mode}")
        @Property
        private boolean productionMode;

this way sounds much easier than the crpytic form in the constructor:

public class MyService implements MyServiceInterface
{
  public MyService(@Value("${tapestry.production-mode}") boolean
productionMode, ...)
  {
    if (productionMode) {

can someone explain me why app properties can not more easiliy requested?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658.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