/** * Set the value of this property in the given provider. */ public static void set(ConfigurationProvider cp, String value) { String key = ProductDerivations.getConfigurationKey(KEY, cp.getProperties()); cp.addProperty(key, value); }
/** * Add the given value to the set of configuration properties. */ public BooleanValue addBoolean(String property) { BooleanValue val = new BooleanValue(property); addValue(val); val.setDefault("false"); return val; }
/** * Add the given value to the set of configuration properties. */ public PluginListValue addPluginList(String property) { PluginListValue val = new PluginListValue(property); addValue(val); return val; }
public void setString(String str) { assertChangeable(); _name = Configurations.getClassName(str); _name = unalias(_name); _props = Configurations.getProperties(str); if (_singleton) set(null, true); valueChanged(); }
/** * Instantiate the plugin as an instance of the given class. */ public Object instantiate(Class type, Configuration conf, boolean fatal) { Object obj = newInstance(_name, type, conf, fatal); Configurations.configureInstance(obj, conf, _props, (fatal) ? getProperty() : null); if (_singleton) set(obj, true); return obj; }
/** * Add the given value to the set of configuration properties. */ public StringListValue addStringList(String property) { StringListValue val = new StringListValue(property); addValue(val); return val; }
/** * Add the given value to the set of configuration properties. */ public ObjectValue addObject(String property) { ObjectValue val = new ObjectValue(property); addValue(val); return val; }
/** * Add the given value to the set of configuration properties. */ public StringValue addString(String property) { StringValue val = new StringValue(property); addValue(val); return val; }
/** * Add the given value to the set of configuration properties. */ public PluginValue addPlugin(String property, boolean singleton) { PluginValue val = new PluginValue(property, singleton); addValue(val); return val; }
public void setString(String str) { assertChangeable(); _name = Configurations.getClassName(str); _name = unalias(_name); _props = Configurations.getProperties(str); if (_singleton) set(null, true); valueChanged(); }
/** * Set the value of this property in the given provider. */ public static void set(ConfigurationProvider cp, String value) { String key = ProductDerivations.getConfigurationKey(KEY, cp.getProperties()); cp.addProperty(key, value); }
/** * Add the given value to the set of configuration properties. */ public PluginListValue addPluginList(String property) { PluginListValue val = new PluginListValue(property); addValue(val); return val; } }
/** * Add the given value to the set of configuration properties. */ public StringListValue addStringList(String property) { StringListValue val = new StringListValue(property); addValue(val); return val; }
/** * Add the given value to the set of configuration properties. */ public ObjectValue addObject(String property) { ObjectValue val = new ObjectValue(property); addValue(val); return val; }
/** * Set the value of this property in the given provider. */ public static void set(ConfigurationProvider cp, String value) { String key = ProductDerivations.getConfigurationKey(KEY, cp.getProperties()); cp.addProperty(key, value); }
/** * Add the given value to the set of configuration properties. */ public PluginListValue addPluginList(String property) { PluginListValue val = new PluginListValue(property); addValue(val); return val; }