In a Kotlin library I am using (from Java) there i...
# getting-started
p
In a Kotlin library I am using (from Java) there is a function defined like so:
Copy code
fun resolvers(vararg resolvers: GraphQLResolver<*>) = this.apply {
    this.resolvers.addAll(resolvers)
}
Now in my Java code I can obtain a collection of
GraphQLResolver
like so:
Copy code
Collection<GraphQLResolver> beans = applicationContext.getBeansOfType(GraphQLResolver.class).values();
But for the life of me I can't figure out how to pass that collection into the
resolvers
method. It just won't take it because of the one generic type I am missing. I am even willing to accept an unsafe cast but how to do it?