Class GraphQLRepositoryProxyBeanFactory
java.lang.Object
com.graphql_java_generator.client.graphqlrepository.GraphQLRepositoryProxyBeanFactory
The
GraphQLRepositoryInvocationHandler
s are created for each interface marked by the
GraphQLRepository
annotation by the GraphQLRepositoryProxyBeansRegistrar
Spring configuration class.
It register a bean factory for each such interface, and provided the right InvocationHandler
for each.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<R> R
createGraphQLRepositoryInvocationHandler
(ClassLoader classLoader, Class<R> clazz)
-
Constructor Details
-
GraphQLRepositoryProxyBeanFactory
public GraphQLRepositoryProxyBeanFactory()
-
-
Method Details
-
createGraphQLRepositoryInvocationHandler
public <R> R createGraphQLRepositoryInvocationHandler(ClassLoader classLoader, Class<R> clazz) throws GraphQLRequestPreparationException - Type Parameters:
R
- The class of the bean to construct. This class is expected to be annotated byGraphQLRepository
orGraphQLReactiveRepository
- Parameters:
classLoader
-clazz
-- Returns:
- Throws:
GraphQLRequestPreparationException
-