private TextProvider getTextProvider(Object action) {
   TextProviderFactory tpf = new TextProviderFactory();
   if (container != null) {
     container.inject(tpf);
   }
   LocaleProvider localeProvider = getLocaleProvider(action);
   return tpf.createInstance(action.getClass(), localeProvider);
 }
Ejemplo n.º 2
0
 private TextProvider getTextProvider() {
   if (textProvider == null) {
     TextProviderFactory tpf = new TextProviderFactory();
     if (container != null) {
       container.inject(tpf);
     }
     textProvider = tpf.createInstance(getClass(), this);
   }
   return textProvider;
 }