/** * Load an ApplicationBuilder from a JSONObject. * @param root JSON object * @return Application Builder loaded from JSON * @throws AssemblyException if unable to declare the assembly */ public static ApplicationBuilder fromJson( JsonObject root ) throws AssemblyException { String applicationName = root.getString( "name" ); ApplicationBuilder builder = new ApplicationBuilder( applicationName ); builder.configureWithJson( root ); return builder; }
/** * Load an ApplicationBuilder from a JSONObject. * @param root JSON object * @return Application Builder loaded from JSON * @throws AssemblyException if unable to declare the assembly */ public static ApplicationBuilder fromJson( JsonObject root ) throws AssemblyException { String applicationName = root.getString( "name" ); ApplicationBuilder builder = new ApplicationBuilder( applicationName ); builder.configureWithJson( root ); return builder; }