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); }
private TextProvider getTextProvider() { if (textProvider == null) { TextProviderFactory tpf = new TextProviderFactory(); if (container != null) { container.inject(tpf); } textProvider = tpf.createInstance(getClass(), this); } return textProvider; }