Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SalaryServiceImpl {
- private static Boolean eusEnabled = null;
- private static final Object initEusLock = new Object();
- public SalaryServiceImpl() {
- synchronized(initEusLock) {
- if(eusEnabled == null) {
- try {
- eusEnabled = queryEusEnabled();
- } catch (Exception e) {
- _logger.severe("Unable to query eusEnabled. EUS will be disabled.", e);
- eusEnabled = false;
- }
- _logger.info("initializing with EUS {0}", (eusEnabled ? "enabled" : "disabled")});
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement