StandardRuntimeProvider constructor

StandardRuntimeProvider()

Default mutable implementation of ConfigurableRuntimeProvider.

This class collects runtime metadata during the context construction phase. Internally, it stores discovered libraries, packages, assets, environment entries, and special types. Once all metadata is added, it can be finalized into an immutable ReflectedContext via build.

This class is used by the runtime engine, compilers, and custom context processors that extend the metadata model.

Example

final context = StandardRuntimeProvider();
// Assuming you have a way to create ReflectedLibrary instances
// context.addLibrary(myReflectedLibrary);
context.addEnvironment('env', 'dev');

final runtime = context.build();
print(runtime.getMetadata().getAllClasses().length);

Implementation

StandardRuntimeProvider() : super();