- @PostConstruct
- public void scheduleInit() {
- LOGGER.info("Photo application initializing");
- // timerService.createTimer(1000, 1000, null);
- LOGGER.info("Initializing photo application");
- Helper helper = new Helper();
- InjectorBuilder.getInjector().inject(helper);
- helper.init();
- LOGGER.info("Initialized photo application");
- }
+ public void init() {
+ userAdmin.getUserCount();
+ album.size();
+ authorizationService.getRules();
+ }
+ }
+
+ @PostConstruct
+ public void scheduleInit() {
+ LOGGER.info("Photo application initializing");
+ // timerService.createTimer(1000, 1000, null);
+ LOGGER.info("Initializing photo application");
+ Helper helper = new Helper();
+ InjectorBuilder.getInjector().inject(helper);
+ helper.init();
+ LOGGER.info("Initialized photo application");
+ }