Skip to content
Snippets Groups Projects
Commit aef54b11 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6162 refactor string to constant

parent b66a753a
No related branches found
No related tags found
No related merge requests found
...@@ -41,12 +41,15 @@ import net.devh.boot.grpc.client.inject.GrpcClient; ...@@ -41,12 +41,15 @@ import net.devh.boot.grpc.client.inject.GrpcClient;
@Configuration @Configuration
public class DocumentManagerConfiguration { public class DocumentManagerConfiguration {
private static final String GRPC_USER_MANAGER_NAME = "user-manager";
private static final String GRPC_COMMAND_MANAGER_NAME = "command-manager";
public static final String COMMAND_SERVICE_NAME = "bescheid_OzgCloudCommandService"; public static final String COMMAND_SERVICE_NAME = "bescheid_OzgCloudCommandService";
public static final String USER_PROFILE_SERVICE_NAME = "bescheid_OzgCloudUserProfileService"; public static final String USER_PROFILE_SERVICE_NAME = "bescheid_OzgCloudUserProfileService";
@GrpcClient("command-manager") @GrpcClient(GRPC_COMMAND_MANAGER_NAME)
private CommandServiceGrpc.CommandServiceBlockingStub commandServiceStub; private CommandServiceGrpc.CommandServiceBlockingStub commandServiceStub;
@GrpcClient("user-manager") @GrpcClient(GRPC_USER_MANAGER_NAME)
private UserProfileServiceGrpc.UserProfileServiceBlockingStub userProfileServiceStub; private UserProfileServiceGrpc.UserProfileServiceBlockingStub userProfileServiceStub;
@Bean(COMMAND_SERVICE_NAME) @Bean(COMMAND_SERVICE_NAME)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment