@Override protected void populateProperties(Properties props) { try { URI uri = toURI(); if (uri != null) { props.put(Context.PROVIDER_URL, uri.toASCIIString()); props.put("brokerURL", uri.toASCIIString()); } BeanSupport.getProperties(this, props); } catch (IOException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { throw new RuntimeException(e); } }
@Override protected void populateProperties(Properties props) { try { URI uri = toURI(); if (uri != null) { props.put(Context.PROVIDER_URL, uri.toASCIIString()); props.put("brokerURL", uri.toASCIIString()); } BeanSupport.getProperties(this, props); } catch (IOException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { throw new RuntimeException(e); } }
@Override protected void populateProperties(Properties props) { try { URI uri = toURI(); if (uri != null) { props.put(Context.PROVIDER_URL, uri.toASCIIString()); props.put("brokerURL", uri.toASCIIString()); } BeanSupport.getProperties(this, props); } catch (IOException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { throw new RuntimeException(e); } }
@Override protected void populateProperties(Properties props) { try { URI uri = toURI(); if (uri != null) { props.put(Context.PROVIDER_URL, uri.toASCIIString()); props.put("brokerURL", uri.toASCIIString()); } BeanSupport.getProperties(this, props); } catch (IOException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { throw new RuntimeException(e); } }
@Override protected void populateProperties(Properties props) { try { URI uri = toURI(); if (uri != null) { props.put(Context.PROVIDER_URL, uri.toASCIIString()); props.put("brokerURL", uri.toASCIIString()); } BeanSupport.getProperties(this, props); } catch (IOException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { throw new RuntimeException(e); } }