diff --git a/src/main/java/com/loafle/overflow/container/server/ContainerServer.java b/src/main/java/com/loafle/overflow/container/server/ContainerServer.java index 0b9efa7..b7d3a3f 100644 --- a/src/main/java/com/loafle/overflow/container/server/ContainerServer.java +++ b/src/main/java/com/loafle/overflow/container/server/ContainerServer.java @@ -4,8 +4,6 @@ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; -import javax.annotation.Resource; - import com.loafle.commons.server.Server; import io.netty.bootstrap.ServerBootstrap; @@ -15,7 +13,6 @@ import io.netty.channel.ChannelFuture; * ContainerServer */ public class ContainerServer extends Server { - @Resource private String pidFilePath; private int portNumber; @@ -23,6 +20,10 @@ public class ContainerServer extends Server { public ContainerServer() { } + public void setPidFilePath(String pidFilePath) { + this.pidFilePath = pidFilePath; + } + protected ChannelFuture bind(ServerBootstrap serverBootstrap) throws Exception { ChannelFuture cf = null;