Skip to content

Instantly share code, notes, and snippets.

@searls
Created October 23, 2010 22:20
Show Gist options
  • Save searls/642767 to your computer and use it in GitHub Desktop.
Save searls/642767 to your computer and use it in GitHub Desktop.
public class ActionSupport implements TextProvider, ... {
private final transient TextProvider textProvider =
new TextProviderFactory().createInstance(getClass(), this);
...
public String getText(String aTextName) {
return textProvider.getText(aTextName);
}
public String getText(String aTextName, String defaultValue) {
return textProvider.getText(aTextName, defaultValue);
}
public String getText(String aTextName, String defaultValue, String obj) {
return textProvider.getText(aTextName, defaultValue, obj);
}
public String getText(String aTextName, List<Object> args) {
return textProvider.getText(aTextName, args);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment