Skip to content

Instantly share code, notes, and snippets.

@os890
Created June 22, 2018 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save os890/5d0819d7cb12b8ffe35ac9458345c0d9 to your computer and use it in GitHub Desktop.
Save os890/5d0819d7cb12b8ffe35ac9458345c0d9 to your computer and use it in GitHub Desktop.
@ApplicationScoped
public class DbMessageSourceAdapter implements MessageSourceAdapter {
@Inject
private ViolationMessageDao violationMessageDao;
@Override
public String resolveMessage(String key, Locale locale) {
return violationMessageDao.findByKey(key);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment