Class ReflectiveAppRoot

  • All Implemented Interfaces:
    Id, LocalId

    public class ReflectiveAppRoot
    extends AppRoot
    Useful for testing. Creates Components reflectively.
    • Constructor Detail

      • ReflectiveAppRoot

        public ReflectiveAppRoot​(String name)
      • ReflectiveAppRoot

        public ReflectiveAppRoot()
    • Method Detail

      • get

        public <T extends ComponentRoot> T get​(Class<T> providerId)
        Description copied from class: AppRoot
        subclasses should override this using the appropriate DI/ServiceLoading mechanism to allow the pattern appRoot.get(Components.class)...; e.g. appRoot.get(ProcessIds.class).get("my.process.id).tasks().get("my.task")
        Specified by:
        get in class AppRoot