Morning, I'm trying to inject the EventBus into m...
# getting-started
s
Morning, I'm trying to inject the EventBus into my model but it fails with
Copy code
kotlin.UninitializedPropertyAccessException: lateinit property bus has not been initialized
The injection happens like this:
Copy code
@field:Default
    @Inject
    lateinit var bus: EventBus
I have another class which is @ApplicationScoped and the fun which is trying to call the method of my model where i like to inject the bus, is annotated with @Transactional. What does a class need to support so i can inject the EventBus?