Skip to content

Commit

Permalink
JLink Minor Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
GedMarc committed Jan 2, 2024
1 parent 3176808 commit 4a6a10d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/guicedee/guicedinjection/GuiceContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,14 +295,14 @@ public static <T> T get(@NotNull Key<T> type)
return instance;
}

private static Set<IGuicePreDestroy> destroyers = GuiceContext.instance()
.getLoader(IGuicePreDestroy.class, false, ServiceLoader.load(IGuicePreDestroy.class));
/**
* Execute on Destroy
*/
@SuppressWarnings("unused")
public static void destroy()
{
Set<IGuicePreDestroy> destroyers = GuiceContext.instance()
.getLoader(IGuicePreDestroy.class, false, ServiceLoader.load(IGuicePreDestroy.class));
try
{
for (IGuicePreDestroy destroyer : destroyers)
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import com.guicedee.guicedinjection.JobService;
import com.guicedee.guicedinjection.interfaces.IGuicePreDestroy;

module com.guicedee.guicedinjection {
requires transitive com.guicedee.client;

Expand Down Expand Up @@ -26,6 +29,8 @@
//uses com.guicedee.guicedinjection.interfaces.IGuiceDefaultBinder;
uses com.guicedee.guicedinjection.interfaces.IGuicePreStartup;
uses com.guicedee.guicedinjection.interfaces.IGuicePreDestroy;


uses com.guicedee.guicedinjection.interfaces.IGuiceModule;
uses com.guicedee.guicedinjection.interfaces.IGuicePostStartup;
uses com.guicedee.guicedinjection.interfaces.IPathContentsScanner;
Expand All @@ -42,6 +47,8 @@
provides com.guicedee.guicedinjection.interfaces.IGuiceModule with com.guicedee.guicedinjection.injections.ContextBinderGuice;
//provides com.guicedee.guicedinjection.interfaces.IGuiceModule with com.guicedee.guicedinjection.abstractions.GuiceInjectorModule;

provides IGuicePreDestroy with JobService;

provides java.net.spi.URLStreamHandlerProvider with com.guicedee.guicedinjection.urls.JrtUrlHandler;

opens com.guicedee.guicedinjection to com.fasterxml.jackson.databind;
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
com.guicedee.guicedinjection.interfaces.JobService
com.guicedee.guicedinjection.JobService

0 comments on commit 4a6a10d

Please sign in to comment.