public interface ComponentEventContext
| Modifier and Type | Method and Description |
|---|---|
default String |
contextCopedPath(String path,
int prevLevel)
Prefixes given path with the event context id trimmed by provided levels.
|
default int |
contextNestingLevel()
Number of levels in event context id.
|
default String |
contextScopedLocation()
Get component location prefixed with the event context id.
|
static String |
contextScopedLocationFor(String eventContextId,
String location) |
default String |
contextScopedPath(String path)
Prefix the given path with event context id
|
String |
getEventContextId() |
default String |
getEventContextPrimaryId()
Gets the primary event context id which is the part before first `_`
character.
|
String |
getLocation() |
default Optional<String> |
prevContextScopedPath(String path) |
String getEventContextId()
String getLocation()
default String getEventContextPrimaryId()
default int contextNestingLevel()
default String contextScopedPath(String path)
path - to prefixgetEventContextId()default String contextCopedPath(String path, int prevLevel)
path - String to prefix event context idprevLevel - int levels to removedefault String contextScopedLocation()
Copyright © 2024 AVIO Consulting. All rights reserved.