Class AppRoot
- java.lang.Object
-
- org.kie.efesto.common.api.identifiers.LocalUriId
-
- org.kie.efesto.common.api.identifiers.AppRoot
-
- Direct Known Subclasses:
ReflectiveAppRoot
public abstract class AppRoot extends LocalUriId implements Id
Root path of an application. An application has a name. Many applications may be created. The name creates a name space for each application, so that components may be individually addressed across application instances. An AppRoot retrieves "components" throughComponentRoots. Each component provides a fluent builder for anIdthat is specific to that component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <T extends ComponentRoot>
Tget(Class<T> providerId)subclasses should override this using the appropriate DI/ServiceLoading mechanism to allow the patternappRoot.get(Components.class)...; e.g.Stringname()Name is only used to differentiate multiple applications.-
Methods inherited from class org.kie.efesto.common.api.identifiers.LocalUriId
asLocalUri, equals, hashCode, toLocalId, toString
-
-
-
-
Constructor Detail
-
AppRoot
protected AppRoot(String name)
-
-
Method Detail
-
get
public abstract <T extends ComponentRoot> T get(Class<T> providerId)
subclasses should override this using the appropriate DI/ServiceLoading mechanism to allow the patternappRoot.get(Components.class)...; e.g.appRoot.get(ProcessIds.class).get("my.process.id).tasks().get("my.task")
-
name
public String name()
Name is only used to differentiate multiple applications. Mostly useful in a distributed context, with RemoteIds.
-
-