This file contains hidden or 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
<size-rotating-file-handler name="FILE"> | |
<rotate-size>5MB</rotate-size> | |
<formatter> | |
<pattern-formatter | |
pattern="%d{yyyy/MM/dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n" /> | |
</formatter> | |
<file relative-to="jboss.server.log.dir" path="server.log" /> | |
<append value="true" /> | |
</periodic-rotating-file-handler> |
This file contains hidden or 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 CountryService { | |
private @Inject Cache<String, Country> cache; | |
private @Inject Self<CountryService> self; | |
public Country getByIsoA3(String isoA3) { | |
Country ctry = cache.get(isoA3); | |
if (ctry == null) { |
OlderNewer