Skip to content

Commit

Permalink
Fix the lookup method
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed May 22, 2024
1 parent 5621b1d commit 96041bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -93,7 +94,7 @@ public Stream<Lifecycle> stream() {

@Override
public Optional<Lifecycle> lookup(String id) {
return Optional.empty();
return stream().filter(lf -> Objects.equals(id, lf.id())).findAny();
}

@Named
Expand Down

0 comments on commit 96041bb

Please sign in to comment.