@Override protected void buildFromProperties(Properties props) { String url = props.getProperty(Context.PROVIDER_URL); if (url == null || url.isEmpty()) { url = props.getProperty("brokerURL"); } if (url != null && url.length() > 0) { setBrokerURL(url); } if (url == null || url.isEmpty()) { throw new IllegalArgumentException(Context.PROVIDER_URL + " or " + "brokerURL is required"); } try { BeanSupport.setProperties(this, props); } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { throw new RuntimeException(e); } }
@Override protected void buildFromProperties(Properties props) { String url = props.getProperty(Context.PROVIDER_URL); if (url == null || url.isEmpty()) { url = props.getProperty("brokerURL"); } if (url != null && url.length() > 0) { setBrokerURL(url); } if (url == null || url.isEmpty()) { throw new IllegalArgumentException(Context.PROVIDER_URL + " or " + "brokerURL is required"); } try { BeanSupport.setProperties(this, props); } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { throw new RuntimeException(e); } }
@Override protected void buildFromProperties(Properties props) { String url = props.getProperty(Context.PROVIDER_URL); if (url == null || url.isEmpty()) { url = props.getProperty("brokerURL"); } if (url != null && url.length() > 0) { setBrokerURL(url); } if (url == null || url.isEmpty()) { throw new IllegalArgumentException(Context.PROVIDER_URL + " or " + "brokerURL is required"); } try { BeanSupport.setProperties(this, props); } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { throw new RuntimeException(e); } }
@Override protected void buildFromProperties(Properties props) { String url = props.getProperty(Context.PROVIDER_URL); if (url == null || url.isEmpty()) { url = props.getProperty("brokerURL"); } if (url != null && url.length() > 0) { setBrokerURL(url); } if (url == null || url.isEmpty()) { throw new IllegalArgumentException(Context.PROVIDER_URL + " or " + "brokerURL is required"); } try { BeanSupport.setProperties(this, props); } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { throw new RuntimeException(e); } }
@Override protected void buildFromProperties(Properties props) { String url = props.getProperty(Context.PROVIDER_URL); if (url == null || url.isEmpty()) { url = props.getProperty("brokerURL"); } if (url != null && url.length() > 0) { setBrokerURL(url); } if (url == null || url.isEmpty()) { throw new IllegalArgumentException(Context.PROVIDER_URL + " or " + "brokerURL is required"); } try { BeanSupport.setProperties(this, props); } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { throw new RuntimeException(e); } }