diff --git a/api/src/main/java/com/seibel/lod/api/interfaces/events/IDhApiEventInjector.java b/api/src/main/java/com/seibel/lod/api/interfaces/events/IDhApiEventInjector.java index de5a2591a..7744a3a21 100644 --- a/api/src/main/java/com/seibel/lod/api/interfaces/events/IDhApiEventInjector.java +++ b/api/src/main/java/com/seibel/lod/api/interfaces/events/IDhApiEventInjector.java @@ -20,6 +20,7 @@ package com.seibel.lod.api.interfaces.events; import com.seibel.lod.api.methods.events.interfaces.IDhApiEvent; +import com.seibel.lod.core.interfaces.dependencyInjection.IDependencyInjector; /** * This class takes care of dependency injection for API events. @@ -27,7 +28,7 @@ import com.seibel.lod.api.methods.events.interfaces.IDhApiEvent; * @author James Seibel * @version 2022-9-13 */ -public interface IDhApiEventInjector +public interface IDhApiEventInjector extends IDependencyInjector { /** @@ -36,7 +37,7 @@ public interface IDhApiEventInjector * @throws IllegalArgumentException if the implementation object doesn't implement the interface * @return true if the handler was unbound, false if the handler wasn't bound. */ - // Note to self: Don't try adding a generic type to IDhApiEvent, the consturctor won't accept it + // Note to self: Don't try adding a generic type to IDhApiEvent, the constructor won't accept it boolean unbind(Class dependencyInterface, Class dependencyClassToRemove) throws IllegalArgumentException; diff --git a/api/src/main/java/com/seibel/lod/core/DependencyInjection/ApiEventInjector.java b/api/src/main/java/com/seibel/lod/core/DependencyInjection/ApiEventInjector.java index c4c28ee74..b9d7623c3 100644 --- a/api/src/main/java/com/seibel/lod/core/DependencyInjection/ApiEventInjector.java +++ b/api/src/main/java/com/seibel/lod/core/DependencyInjection/ApiEventInjector.java @@ -35,7 +35,7 @@ import java.util.HashMap; * @author James Seibel * @version 2022-11-24 */ -public class ApiEventInjector extends DependencyInjector implements IDhApiEventInjector // Note to self: Don't try adding a generic type to IDhApiEvent, the consturctor won't accept it +public class ApiEventInjector extends DependencyInjector implements IDhApiEventInjector // Note to self: Don't try adding a generic type to IDhApiEvent, the constructor won't accept it { public static final ApiEventInjector INSTANCE = new ApiEventInjector(); diff --git a/api/src/main/java/com/seibel/lod/core/DependencyInjection/DependencyInjector.java b/api/src/main/java/com/seibel/lod/core/DependencyInjection/DependencyInjector.java index 9a4f3b828..df3c4523b 100644 --- a/api/src/main/java/com/seibel/lod/core/DependencyInjection/DependencyInjector.java +++ b/api/src/main/java/com/seibel/lod/core/DependencyInjection/DependencyInjector.java @@ -33,7 +33,7 @@ import java.util.Map; * @author James Seibel * @version 2022-11-24 */ -public class DependencyInjector implements IDependencyInjector +public class DependencyInjector implements IDependencyInjector // Note to self: Don't try adding a generic type to IDhApiEvent, the constructor won't accept it { protected final Map, ArrayList> dependencies = new HashMap<>();