diff --git a/base/src/main/java/de/staropensource/sosengine/base/utility/DependencyResolver.java b/base/src/main/java/de/staropensource/sosengine/base/utility/DependencyResolver.java index 38e9bc3..9a30b74 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/utility/DependencyResolver.java +++ b/base/src/main/java/de/staropensource/sosengine/base/utility/DependencyResolver.java @@ -22,6 +22,8 @@ package de.staropensource.sosengine.base.utility; import de.staropensource.sosengine.base.exceptions.UnexpectedThrowableException; import de.staropensource.sosengine.base.exceptions.UnmetDependenciesException; import de.staropensource.sosengine.base.types.dependency.DependencyVector; +import de.staropensource.sosengine.base.types.immutable.ImmutableArrayList; +import de.staropensource.sosengine.base.types.immutable.ImmutableLinkedList; import org.jetbrains.annotations.NotNull; import java.util.*; @@ -216,4 +218,16 @@ public final class DependencyResolver { return this; } + + /** + * Returns the correct order which stuff needs to be loaded/done in. + * + * @return {@link LinkedList} with dependencies first and dependents last + * @since 1-alpha1 + */ + public LinkedList getOrder() { + LinkedList list = new LinkedList<>(); + + return list; + } }