• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

felleslosninger / einnsyn-backend / 23136150098

16 Mar 2026 09:12AM UTC coverage: 85.171% (+0.1%) from 85.069%
23136150098

push

github

web-flow
Merge pull request #623 from felleslosninger/EIN-4939-refaktorering-i-base-service

EIN-4939: Refactor find*-methods in BaseService

2564 of 3437 branches covered (74.6%)

Branch coverage included in aggregate %.

7717 of 8634 relevant lines covered (89.38%)

3.73 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
src/main/java/no/einnsyn/backend/utils/ApplicationShutdownListenerService.java
1
package no.einnsyn.backend.utils;
2

3
import java.util.concurrent.atomic.AtomicBoolean;
4
import lombok.extern.slf4j.Slf4j;
5
import org.springframework.context.ApplicationListener;
6
import org.springframework.context.event.ContextClosedEvent;
7
import org.springframework.stereotype.Component;
8

9
@Slf4j
4✔
10
@Component
11
public class ApplicationShutdownListenerService implements ApplicationListener<ContextClosedEvent> {
2✔
12

13
  private final AtomicBoolean shuttingDown = new AtomicBoolean(false);
7✔
14

15
  @Override
16
  public void onApplicationEvent(ContextClosedEvent event) {
17
    log.info("ContextClosedEvent received. Application is shutting down.");
×
18
    this.shuttingDown.set(true);
×
19
  }
×
20

21
  public boolean isShuttingDown() {
22
    return this.shuttingDown.get();
4✔
23
  }
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc