override fun process()

in src/main/kotlin/com/netflix/dgs/plugin/services/DgsDataProcessor.kt [34:56]


    override fun process(uAnnotation: UAnnotation): Boolean {

        val uMethod = uAnnotation.getParentOfType<UMethod>()

        if (uMethod != null) {
            when {
                DgsDataFetcher.isDataFetcherAnnotation(uAnnotation) -> processDataFetcher(uMethod, uAnnotation)
                DgsEntityFetcher.isEntityFetcherAnnotation(uAnnotation) -> processEntityFetcher(uMethod, uAnnotation)
                DgsRuntimeWiring.isDgsRuntimeWiringAnnotation(uAnnotation) -> processRuntimeWiring(uMethod, uAnnotation)
            }
        } else {
            val uClass = uAnnotation.getParentOfType<UClass>()
            if (uClass != null) {
                when {
                    DgsDataLoader.isDataLoaderAnnotation(uAnnotation) -> processDataLoader(uClass, uAnnotation)
                    DgsDirective.isDgsDirectiveAnnotation(uAnnotation) -> processDirective(uAnnotation, uClass)
                    DgsScalar.isDgsScalarAnnotation(uAnnotation) -> processScalar(uAnnotation, uClass)
                }
            }
        }

        return true
    }