@@ -0,0 +1,1209 @@
+/*%0A * Copyright 2016 Yu Sheng. All Rights Reserved.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not%0A * use this file except in compliance with the License.  You may obtain a copy of%0A * the License at http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software distributed%0A * under the License is distributed on an %22AS IS%22 BASIS, without warranties or%0A * conditions of any kind, EITHER EXPRESS OR IMPLIED.  See the License for the%0A * specific language governing permissions and limitations under the License.%0A */%0A%0Apackage com.ysheng.auth.frontend;%0A%0Aimport com.ysheng.auth.frontend.configuration.ApiConfiguration;%0Aimport com.ysheng.auth.frontend.configuration.ConfigurationParser;%0Aimport com.ysheng.auth.frontend.service.ApiService;%0Aimport com.ysheng.auth.frontend.service.FactoryProviderImpl;%0A%0A/**%0A * The main class.%0A */%0Apublic class Main %7B%0A%0A  public static void main(String%5B%5D args) throws Exception %7B%0A    if (args.length == 2 && %22server%22.equals(args%5B0%5D)) %7B%0A      ApiConfiguration configuration = ConfigurationParser.parse(args%5B1%5D);%0A      new ApiService(configuration, new FactoryProviderImpl()).run(args);%0A    %7D%0A  %7D%0A%7D%0A

add main class