Strategy interface for detecting and creating SystemEnvironment instances.
This interface defines the contract for environment detection strategies. Different implementations can provide various detection mechanisms for different deployment scenarios.
The detector is responsible for:
- Analyzing runtime environment
- Detecting compilation modes
- Identifying execution context
- Creating configured Properties instances
Example usage:
final detector = DefaultSystemDetector();
final properties = detector.detect(args);
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canDetect(
) → bool - Returns true if this detector can handle the current environment
-
detect(
List< String> args) → Properties - Detects the current system environment and returns a configured instance
-
getPriority(
) → int - Returns the priority of this detector (higher values take precedence)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited