lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.tests.LFInjectorProvider Class Reference

Note: this is a copy of a file generated by XText. More...

Inherits IInjectorProvider.

Public Member Functions

Injector getInjector ()

Protected Member Functions

LFRuntimeModule createRuntimeModule ()
Injector internalCreateInjector ()

Protected Attributes

volatile Injector injector

Detailed Description

Note: this is a copy of a file generated by XText.

The main modification is to make this a Singleton. This is because XText initialization relies on global static fields, and concurrent test class initialization may not work properly. This modified version also does not implement IRegistryConfigurator, which would have cleaned up the registry in a non-deterministic way. The global XText state is thus shared by all concurrent tests and initialized exactly once.

Member Function Documentation

◆ createRuntimeModule()

LFRuntimeModule org.lflang.tests.LFInjectorProvider.createRuntimeModule ( )
protected

◆ getInjector()

Injector org.lflang.tests.LFInjectorProvider.getInjector ( )

◆ internalCreateInjector()

Injector org.lflang.tests.LFInjectorProvider.internalCreateInjector ( )
protected

Member Data Documentation

◆ injector

volatile Injector org.lflang.tests.LFInjectorProvider.injector
protected

The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/testFixtures/java/org/lflang/tests/LFInjectorProvider.java