I feel somewhat stupid asking this one, but I just can't grip how to "publish" a "dynamically created" object so it will show up in lookupAll().
This is a really small library I'm working on and the only NetBeans dependency I have is org-openide-util-lookup, if that matters at all. The following declared class: @ServiceProvider(service = Window.class) public class Left1bWindow extends Window {} shows up as expected when I do: var windows = new ArrayList<>(Lookup.getDefault().lookupAll(Window.class)); but a simple object creation will not. Window someOtherWindow=new Window(); What can I do to get the desired result?