>>
>>>
>>> productionMode!
>>>
>>>
>>>
>>>
>>> My FrontendModule
>>>
>>> public static void
>> contributeApplicationDefaults(MappedConfiguration>> String> configuration) {
>>>
>&
>
> > public static void
> contributeApplicationDefaults(MappedConfiguration > String> configuration) {
> >
> > configuration.add("tapestry.production-mode", "true");
> >
> > }
> >
> > The String "producti
y FrontendModule
>
> public static void contributeApplicationDefaults(MappedConfiguration String> configuration) {
>
> configuration.add("tapestry.production-mode", "true");
>
> }
>
> The String "productionMode!" is never printed. Using Tapestry 5.3.
onDefaults(MappedConfiguration configuration) {
configuration.add("tapestry.production-mode", "true");
}
The String "productionMode!" is never printed. Using Tapestry 5.3.1.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-m
On Sat, 21 Jul 2012 12:47:10 -0300, sommeralex
wrote:
@Value("${tapestry.production-mode}")
@Property
private boolean productionMode;
You don't need @Property for injecting stuff. In addition, using @Symbol,
you don't need to use expansions:
@Inject
@Symbol(Symbo
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658p5714674.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To uns
ect @Value("${tapestry.production-mode}")
private boolean productionMode;
I never use private field injection in my services (@Inject) as it makes it
difficult to test but the option is there if you want it.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Test-if-pro
c 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.
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 mai