poohbar
01/26/2018, 1:25 PMfun resolvers(vararg resolvers: GraphQLResolver<*>) = this.apply {
this.resolvers.addAll(resolvers)
}
Now in my Java code I can obtain a collection of GraphQLResolver
like so:
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?