Class DirectiveRegistryImpl

java.lang.Object
com.graphql_java_generator.client.directive.DirectiveRegistryImpl
All Implemented Interfaces:
DirectiveRegistry

@Component
public class DirectiveRegistryImpl
extends java.lang.Object
implements DirectiveRegistry
Author:
etienne-sf
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static DirectiveRegistry directiveRegistry
    As we may have or not have Spring at runtime, we manually manage a singleton.
  • Constructor Summary

    Constructors 
    Constructor Description
    DirectiveRegistryImpl()  
  • Method Summary

    Modifier and Type Method Description
    Directive getDirective​(java.lang.String name)
    Retrieves the registered GraphQLScalarType for this GraphQL CustomScalar.
    void registerAllDirectives()
    This method registers all GraphQLScalarType that are declared as Spring Component.
    void registerDirective​(Directive type)
    Manually register one GraphQL directive.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • directiveRegistry

      public static DirectiveRegistry directiveRegistry
      As we may have or not have Spring at runtime, we manually manage a singleton. This field is private, and should only be accessed through #getDirectiveRegistry().
  • Constructor Details

  • Method Details