Skip to content

Commit

Permalink
Rely on HK2 regarding InjectionManager#isShutDown()
Browse files Browse the repository at this point in the history
Signed-off-by: jansupol <jan.supol@oracle.com>
  • Loading branch information
jansupol committed Oct 26, 2022
1 parent cf4c0c7 commit 2e4a1d8
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -51,7 +51,6 @@ abstract class AbstractHk2InjectionManager implements InjectionManager {
private static final ServiceLocatorFactory factory = ServiceLocatorFactory.getInstance();

private ServiceLocator locator;
private Boolean isShutdown = Boolean.FALSE; // TODO replace by getServiceLocator().isShutDown() in 3.x

/**
* Private constructor.
Expand Down Expand Up @@ -183,12 +182,11 @@ public void shutdown() {
} else {
getServiceLocator().shutdown();
}
isShutdown = Boolean.TRUE;
}

@Override
public boolean isShutdown() {
return isShutdown;
return getServiceLocator().isShutdown();
}

@Override
Expand Down

0 comments on commit 2e4a1d8

Please sign in to comment.