You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone. How can I obtain a reference to an HttpExecutionContext when I'm using compile-time dependency injection in Java?
The reason I ask is that "You must supply the HTTP execution context explicitly as an executor when using a Java CompletionStage inside an Action, to ensure that the classloader remains in scope." -- HttpExecutionContext
... yet the only mechanism demonstrated there for obtaining an HttpExecutionContext is via runtime dependency injection.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone. How can I obtain a reference to an HttpExecutionContext when I'm using compile-time dependency injection in Java?
The reason I ask is that "You must supply the HTTP execution context explicitly as an executor when using a Java CompletionStage inside an Action, to ensure that the classloader remains in scope." -- HttpExecutionContext
... yet the only mechanism demonstrated there for obtaining an HttpExecutionContext is via runtime dependency injection.
Beta Was this translation helpful? Give feedback.
All reactions