Open fralken opened 8 years ago
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