public static void main(String[] args) throws Exception { // Creation Phase Injector injector = Guice.createInjector( new CalculatorServerModule(args)); Server server = injector.getInstance(Server.class); // Run Phase server.start();}
public static void main(String[] args) throws Exception { // Creation Phase Server server = new ServerFactory(args) .createServer(); // Run Phase server.start();}
The comments you read and contribute here belong only to the person who posted them. We reserve the right to remove off-topic comments.
No comments :
Post a Comment
The comments you read and contribute here belong only to the person who posted them. We reserve the right to remove off-topic comments.