Skip to content
Snippets Groups Projects
Commit b8f41606 authored by Lukas Malte Monnerjahn's avatar Lukas Malte Monnerjahn
Browse files

shutdown service

parent 6bb4c73d
No related branches found
No related tags found
1 merge request!2OZG-7491 pipeline: Change version format
Pipeline #1623 passed
package de.ozgcloud.eingang.xta;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Service;
@Service
class ShutdownService {
@Autowired
private ConfigurableApplicationContext context;
public void shutdown() {
context.close();
}
}
...@@ -25,8 +25,6 @@ package de.ozgcloud.eingang.xta; ...@@ -25,8 +25,6 @@ package de.ozgcloud.eingang.xta;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener; import org.springframework.context.ApplicationListener;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Profile;
import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment