compile method

  1. @override
Map<String, dynamic> compile(
  1. MirrorContext context
)

Returns a map of runtime objects that can be used at runtime while running in mirrored mode.

Implementation

@override
Map<String, dynamic> compile(MirrorContext context) {
  return Map.fromEntries(
    context.getSubclassesOf(Configuration).map((c) {
      return MapEntry(
        MirrorSystem.getName(c.simpleName),
        ConfigurationRuntimeImpl(c),
      );
    }),
  );
}