public <T> void setProperty(PropertyDescriptor<T> desc, T value) throws NullPointerException { context.setProperty(desc, value); }
private void configureProperty(PluginContext context, Properties props, PropertyDescriptor<?> desc) { String key = "crash." + desc.name; String value = props.getProperty(key); if (value != null) { try { if (context.getProperty(desc) == null) { log.log(Level.INFO, "Configuring property " + desc.name + "=" + value + " from properties"); context.setProperty(desc, value); } } catch (IllegalArgumentException e) { log.log(Level.SEVERE, "Could not configure property", e); } } } }
private void configureProperty(PluginContext context, Properties props, PropertyDescriptor<?> desc) { String key = "crash." + desc.name; String value = props.getProperty(key); if (value != null) { try { if (context.getProperty(desc) == null) { log.log(Level.INFO, "Configuring property " + desc.name + "=" + value + " from properties"); context.setProperty(desc, value); } } catch (IllegalArgumentException e) { log.log(Level.SEVERE, "Could not configure property", e); } } } }
private void configureProperty(PluginContext context, Properties props, PropertyDescriptor<?> desc) { String key = "crash." + desc.name; String value = props.getProperty(key); if (value != null) { try { if (context.getProperty(desc) == null) { log.log(Level.INFO, "Configuring property " + desc.name + "=" + value + " from properties"); context.setProperty(desc, value); } } catch (IllegalArgumentException e) { log.log(Level.SEVERE, "Could not configure property", e); } } } }
private void configureProperty(PluginContext context, Properties props, PropertyDescriptor<?> desc) { String key = "crash." + desc.name; String value = props.getProperty(key); if (value != null) { try { if (context.getProperty(desc) == null) { log.log(Level.INFO, "Configuring property " + desc.name + "=" + value + " from properties"); context.setProperty(desc, value); } } catch (IllegalArgumentException e) { log.log(Level.SEVERE, "Could not configure property", e); } } } }