1 package org.onap.sdc.dcae.catalog.asdc;
3 import org.onap.sdc.common.onaplog.Enums.LogLevel;
4 import org.onap.sdc.common.onaplog.OnapLoggerDebug;
5 import org.springframework.beans.BeansException;
6 import org.springframework.boot.context.properties.ConfigurationProperties;
7 import org.springframework.context.ApplicationContext;
8 import org.springframework.context.ApplicationContextAware;
9 import org.springframework.web.bind.annotation.RestController;
11 import javax.annotation.PostConstruct;
12 import javax.annotation.PreDestroy;
16 @ConfigurationProperties(prefix="asdcUtilsController")
17 public class ASDCUtilsController implements ApplicationContextAware {
19 private OnapLoggerDebug debugLogger = OnapLoggerDebug.getInstance();
21 public void setApplicationContext(ApplicationContext theCtx) throws BeansException {
22 // no use for app context
26 public void initController() {
27 debugLogger.log(LogLevel.DEBUG, this.getClass().getName(),"initASDCUtilsController");
28 debugLogger.log(LogLevel.DEBUG, this.getClass().getName(),"ASDCUtilsController started");
32 public void cleanupController() {
33 debugLogger.log(LogLevel.DEBUG, this.getClass().getName(),"cleanupASDCUtilsController");