Interface DiagnosticContext
public interface DiagnosticContext
Context exposed to diagnostic checks.
-
Method Summary
Modifier and TypeMethodDescription<T> Optional<T> findComponent(Class<T> type) Finds a typed runtime component.<T> Optional<T> findNamedComponent(String name, Class<T> type) Finds a named runtime component by type.logger()Logger core bound to the runtime.mode()Requested execution mode.platform()Active platform adapter.<T> TrequireComponent(Class<T> type) Returns a component or throws when absent.runtime()Managed MagicUtils runtime.Scheduler available to checks.Context start time.booleanverbose()Whether verbose output was requested.Base working directory for file probes.
-
Method Details
-
runtime
-
platform
-
logger
-
mode
-
verbose
boolean verbose()Whether verbose output was requested.- Returns:
- true when verbose output is enabled
-
startedAt
-
workingDirectory
-
scheduler
-
findComponent
-
findNamedComponent
-
requireComponent
Returns a component or throws when absent.- Type Parameters:
T- component type- Parameters:
type- component type- Returns:
- component instance
-