2018-11-14 13:58:27 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package ch.ethz.seb.sebserver.webservice;
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.springframework.boot.context.event.ApplicationReadyEvent;
|
|
|
|
import org.springframework.context.ApplicationListener;
|
|
|
|
|
|
|
|
import ch.ethz.seb.sebserver.gbl.profile.WebServiceProfile;
|
|
|
|
|
|
|
|
@WebServiceProfile
|
|
|
|
public class WebServiceInit implements ApplicationListener<ApplicationReadyEvent> {
|
|
|
|
|
|
|
|
private static final Logger log = LoggerFactory.getLogger(WebServiceInit.class);
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onApplicationEvent(final ApplicationReadyEvent event) {
|
|
|
|
log.info("Initialize SEB-Server Web-Service Component");
|
|
|
|
|
2018-11-15 11:24:18 +01:00
|
|
|
// TODO whatever has to be initialized for the web-service component right after startup comes here
|
2018-11-14 13:58:27 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|