Say you’re making an asset loader in which the assets being loaded (a predefined spec that can’t be changed) have internal relative references to things that require access to your main SimpleApp object to be interpreted. You can’t override the constructor of an asset loader due to the way they are instantiated, and there doesn’t seem to be a way to get a direct reference to the asset loader object from AssetManager. How would you do this?
In general, this is an anti-pattern - even if the things you load have dependencies on your main program, the loader for them shouldn’t (for one, it could be run on any thread). I’d suggest you structure your loaded object such that you can load it without the dependency and then set it after the asset is loaded.