Created
June 22, 2018 19:37
-
-
Save os890/5d0819d7cb12b8ffe35ac9458345c0d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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