Why do we need a class to be enhanced component to use Background and UiThread

Author: chpashaCreated Jan 23, 2020Updated Mar 30, 2020
LabelsEnhancement

I'm trying to merry AA with android view models and the only problem I cannot solve cleanly is a view models with @background methods and saved state (which requires to have constructor with SavedStateHandle parameter). The EBean annotation will obviously complain about missing constructor with context as only parameter, but actually I don't need either EBean or dependency from context, I just want to use Background/UI which is not possible for now because of the validation that requires any class to be enhanced component. I don't know the internal implementation very good, is there any reasons why @Background, @UiThread and maybe some more stuff cannot be used without enhanced components?

Source: androidannotations/androidannotations