public static NetworkConfig fromJsonObject ( JsonObject jsonConfig ) throws InvalidArgumentException , NetworkConfigurationException { // Sanity check if ( jsonConfig == null ) { throw new InvalidArgumentException ( "jsonConfig must be specified" ) ; } if ( logger . isTraceEnabled ( ) ) { logger . trace ( format ( "NetworkConfig.fromJsonObject: %s" , jsonConfig . toString ( ) ) ) ; } return NetworkConfig . load ( jsonConfig ) ; }
Creates a new NetworkConfig instance configured with details supplied in a JSON object