Class ReflectiveAppRoot

  • All Implemented Interfaces:
    Id, LocalId

    public class ReflectiveAppRoot
    extends AppRoot
    Useful for testing. Creates Components reflectively.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends ComponentRoot>
      T
      get​(java.lang.Class<T> providerId)
      subclasses should override this using the appropriate DI/ServiceLoading mechanism to allow the pattern appRoot.get(Components.class)...; e.g.
      • Methods inherited from class org.kie.efesto.common.api.identifiers.AppRoot

        name
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.kie.efesto.common.api.identifiers.Id

        toLocalId
    • Constructor Detail

      • ReflectiveAppRoot

        public ReflectiveAppRoot​(java.lang.String name)
      • ReflectiveAppRoot

        public ReflectiveAppRoot()
    • Method Detail

      • get

        public <T extends ComponentRoot> T get​(java.lang.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