Home
last modified time | relevance | path

Searched refs:grpcServiceModel (Results 1 – 5 of 5) sorted by relevance

/external/dagger2/java/dagger/grpc/server/processor/
DUnscopedGrpcServiceModuleGenerator.java40 private final GrpcServiceModel grpcServiceModel; field in UnscopedGrpcServiceModuleGenerator
42 UnscopedGrpcServiceModuleGenerator(GrpcServiceModel grpcServiceModel) { in UnscopedGrpcServiceModuleGenerator() argument
43 super(grpcServiceModel.packageName()); in UnscopedGrpcServiceModuleGenerator()
44 this.grpcServiceModel = grpcServiceModel; in UnscopedGrpcServiceModuleGenerator()
50 grpcServiceModel.unscopedServiceModuleName.nestedClass( in createType()
51 grpcServiceModel.serviceImplementationClassName.simpleName() + "ComponentFactory"); in createType()
53 classBuilder(grpcServiceModel.unscopedServiceModuleName) in createType()
58 "if it implements {@link $T}.\n", grpcServiceModel.serviceDefinitionTypeName); in createType()
59 grpcServiceModel.generatedAnnotation().ifPresent(unscopedServiceModule::addAnnotation); in createType()
62 Dagger.module(grpcServiceModel.proxyModuleName, grpcServiceModel.serviceModuleName)) in createType()
[all …]
DServiceDefinitionTypeGenerator.java34 private final GrpcServiceModel grpcServiceModel; field in ServiceDefinitionTypeGenerator
36 ServiceDefinitionTypeGenerator(GrpcServiceModel grpcServiceModel) { in ServiceDefinitionTypeGenerator() argument
37 super(grpcServiceModel.packageName()); in ServiceDefinitionTypeGenerator()
38 this.grpcServiceModel = grpcServiceModel; in ServiceDefinitionTypeGenerator()
44 interfaceBuilder(grpcServiceModel.serviceDefinitionTypeName.simpleName()) in createType()
47 grpcServiceModel.generatedAnnotation().ifPresent(type::addAnnotation); in createType()
49 interfaceBuilder(grpcServiceModel.serviceDefinitionTypeFactoryName.simpleName()) in createType()
54 .returns(grpcServiceModel.serviceDefinitionTypeName) in createType()
60 methodBuilder(grpcServiceModel.subcomponentServiceDefinitionMethodName()) in createType()
63 .addAnnotation(grpcServiceModel.forGrpcService()) in createType()
DProxyModuleGenerator.java51 private final GrpcServiceModel grpcServiceModel; field in ProxyModuleGenerator
53 ProxyModuleGenerator(GrpcServiceModel grpcServiceModel) { in ProxyModuleGenerator() argument
54 super(grpcServiceModel.packageName()); in ProxyModuleGenerator()
55 this.grpcServiceModel = grpcServiceModel; in ProxyModuleGenerator()
61 classBuilder(grpcServiceModel.proxyModuleName) in createType()
66 grpcServiceModel.generatedAnnotation().ifPresent(proxyModule::addAnnotation); in createType()
89 .addAnnotation(grpcServiceModel.forGrpcService()) in provideServiceDefinitionContribution()
94 grpcServiceModel.grpcClass()); in provideServiceDefinitionContribution()
115 methodsIn(grpcServiceModel.grpcClass().getEnclosedElements()), in methodDescriptors()
118 CodeBlock.of("$T.$N()", grpcServiceModel.grpcClass(), method.getSimpleName())); in methodDescriptors()
[all …]
DGrpcServiceModuleGenerator.java44 private final GrpcServiceModel grpcServiceModel; field in GrpcServiceModuleGenerator
46 GrpcServiceModuleGenerator(GrpcServiceModel grpcServiceModel) { in GrpcServiceModuleGenerator() argument
47 super(grpcServiceModel.packageName()); in GrpcServiceModuleGenerator()
48 this.grpcServiceModel = grpcServiceModel; in GrpcServiceModuleGenerator()
54 classBuilder(grpcServiceModel.serviceModuleName) in createType()
60 grpcServiceModel.serviceDefinitionTypeName); in createType()
61 grpcServiceModel.generatedAnnotation().ifPresent(serviceModule::addAnnotation); in createType()
76 .addAnnotation(grpcServiceModel.forGrpcService()) in provideServiceDefinition()
79 .addParameter(grpcServiceModel.serviceImplementationClassName, "implementation") in provideServiceDefinition()
82 .addAnnotation(grpcServiceModel.forGrpcService()) in provideServiceDefinition()
DGrpcServiceProcessor.java69 GrpcServiceModel grpcServiceModel = new GrpcServiceModel(processingEnv, element); in process() local
70 if (grpcServiceModel.validate()) { in process()
71 write(new ServiceDefinitionTypeGenerator(grpcServiceModel), element); in process()
72 write(new ProxyModuleGenerator(grpcServiceModel), element); in process()
73 write(new GrpcServiceModuleGenerator(grpcServiceModel), element); in process()
74 write(new UnscopedGrpcServiceModuleGenerator(grpcServiceModel), element); in process()