ScopeMetadataResolver class abstract interface

Strategy interface for resolving scope metadata for a given class in Jetleaf.

A ScopeMetadataResolver determines the lifecycle scope of a class type (such as "singleton", "prototype", "request", etc.) during pod registration. This allows the Jetleaf container to decide how and when instances of a class should be created and managed.

Key Features:

  • Abstracts scope resolution away from pod registration logic.
  • Enables custom resolution strategies (e.g., based on annotations, naming conventions).
  • Centralized entry point for all scope-related decisions.

Example:

final resolver = CustomScopeMetadataResolver();
final scope = resolver.resolve(Class<MyService>());

print(scope); // "singleton"

Typically used in pod scanning and registration phases of the Jetleaf lifecycle.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(Class classType) String
Resolves the scope metadata for the given classType.
resolveScopeDescriptor(Class classType) → ScopeDesign
Resolves the scope descriptor for the given classType.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited