yjx1045072812 edited a comment on issue #1769: 我自己实现了一个Container,如何在使用com.alibaba.dubbo.container.Main启动应用的时候传递参数进来? URL: https://github.com/apache/incubator-dubbo/issues/1769#issuecomment-388609905 我的代码是这样的: ```java public class ServiceContainer implements Container { private static final Constants constants = new Constants(); private static final Plugins plugins = new Plugins(); private static final Interceptors interceptors = new Interceptors(); private static final AgentServiceConfig myconfig=new AgentServiceConfig(); private static final Logger logger=LoggerFactory.getLogger(ServiceContainer.class); @Override public void start() { myconfig.configConstant(constants); myconfig.configPlugin(plugins); startPulgins(); myconfig.configInterceptor(interceptors); myconfig.afterJFinalStart(); } @Override public void stop() { myconfig.beforeJFinalStop(); stopPulgins(); } ```` 然后使用spi serviceContainer=com.my.ServiceContainer 使用 `java -jar my.jar serviceContainer`启动容器
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org