]> git.somenet.org - pub/jan/dst18.git/blob - ass2-service/auth/src/main/java/dst/ass2/service/auth/grpc/GrpcServerProperties.java
Add template for assignment 2
[pub/jan/dst18.git] / ass2-service / auth / src / main / java / dst / ass2 / service / auth / grpc / GrpcServerProperties.java
1 package dst.ass2.service.auth.grpc;
2
3 /**
4  * This class holds the port value used to bind the gRPC server. The CDI context provides an instance that you can
5  * inject into your implementation of {@link IGrpcServerRunner}. The config values are loaded from the
6  * grpc.properties.
7  */
8 public class GrpcServerProperties {
9
10     private int port;
11
12     public GrpcServerProperties() {
13     }
14
15     public GrpcServerProperties(int port) {
16         this.port = port;
17     }
18
19     public int getPort() {
20         return port;
21     }
22
23     public void setPort(int port) {
24         this.port = port;
25     }
26 }