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
I'd like to generate a class for Play client like so
class PetStoreClient @Inject() (WS: WSClient) (baseUrl: String) {
but it is not possible:
for @Inject() annotation there is no way to define it, maybe the behavior of withCtorFlags should be adapted to support this
it is not possible to define multiple withParams for ClassDefs, probably because ClassDefStarthas its own implementation of withParams rather than extending from VparamssStart
Thanks
The text was updated successfully, but these errors were encountered:
Not sure if this entirely solves the issue, but I found a possible work-around:
val myClassName = "PetStoreClient"
CLASSDEF(
myClassName + " @Inject()"
)
returns
class PetStoreClient @Inject()
this doesn't have great ergonomics on multiple param lists, but if you can turn all N-1 parameter lists to their strings and jam them in the "class name" like above, then you can still formulate the final (N) parameter list via .withParams
I'm hoping to look in to adding these functionalities after I get more familiar with the library (Play integration is my use case as well, as I am sure is the case for many others due to its popularity).
I'd like to generate a class for Play client like so
but it is not possible:
@Inject()
annotation there is no way to define it, maybe the behavior ofwithCtorFlags
should be adapted to support thiswithParams
forClassDef
s, probably becauseClassDefStart
has its own implementation ofwithParams
rather than extending fromVparamssStart
Thanks
The text was updated successfully, but these errors were encountered: