/** * Configure the given object. */ public Object configure(Object obj, Configuration conf, boolean fatal) { Configurations.configureInstance(obj, conf, _props, (fatal) ? getProperty() : null); if (_singleton) set(obj, true); return obj; }
/** * Configure the given object. */ public Object configure(Object obj, Configuration conf, boolean fatal) { Configurations.configureInstance(obj, conf, _props, (fatal) ? getProperty() : null); if (_singleton) set(obj, true); return obj; }
/** * Configure the given object. */ public Object configure(Object obj, Configuration conf, boolean fatal) { Configurations.configureInstance(obj, conf, _props, (fatal) ? getProperty() : null); if (_singleton) set(obj, true); return obj; }
public void set(Object obj, boolean derived) { if (!_singleton) throw new IllegalStateException(_loc.get("not-singleton", getProperty()).getMessage()); super.set(obj, derived); }
public void set(Object obj, boolean derived) { if (!_singleton) throw new IllegalStateException(_loc.get("not-singleton", getProperty()).getMessage()); super.set(obj, derived); }
public void set(Object obj, boolean derived) { if (!_singleton) throw new IllegalStateException(_loc.get("not-singleton", getProperty()).getMessage()); super.set(obj, derived); }
public void set(Object obj, boolean derived) { if (!_singleton) throw new IllegalStateException(_loc.get("not-singleton", getProperty()).getMessage()); super.set(obj, derived); }
/** * 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; }
/** * 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); // ensure plugin value is compatible with plugin type if (obj != null && !type.isAssignableFrom(obj.getClass())) { Log log = (conf == null || type.equals(LogFactory.class)) ? null : conf.getConfigurationLog(); String msg = getIncompatiblePluginMessage(obj, type); if (log != null && log.isErrorEnabled()) { log.error(msg); } if (fatal) { throw new ParseException(msg); } return null; } Configurations.configureInstance(obj, conf, _props, (fatal) ? getProperty() : null); if (_singleton) set(obj, true); return obj; }
/** * 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); // ensure plugin value is compatible with plugin type if (obj != null && !type.isAssignableFrom(obj.getClass())) { Log log = (conf == null || type.equals(LogFactory.class)) ? null : conf.getConfigurationLog(); String msg = getIncompatiblePluginMessage(obj, type); if (log != null && log.isErrorEnabled()) { log.error(msg); } if (fatal) { throw new ParseException(msg); } return null; } Configurations.configureInstance(obj, conf, _props, (fatal) ? getProperty() : null); if (_singleton) set(obj, true); return obj; }
/** * 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); // ensure plugin value is compatible with plugin type if (obj != null && !type.isAssignableFrom(obj.getClass())) { Log log = (conf == null || type.equals(LogFactory.class)) ? null : conf.getConfigurationLog(); String msg = getIncompatiblePluginMessage(obj, type); if (log != null && log.isErrorEnabled()) { log.error(msg); } if (fatal) { throw new ParseException(msg); } return null; } Configurations.configureInstance(obj, conf, _props, (fatal) ? getProperty() : null); if (_singleton) set(obj, true); return obj; }
(fatal) ? getProperty() : null); Configurations.configureInstance(meta, conf, metaProps, (fatal) ? metaPlugin.getProperty() : null);
(fatal) ? getProperty() : null); Configurations.configureInstance(meta, conf, metaProps, (fatal) ? metaPlugin.getProperty() : null);
(fatal) ? getProperty() : null); Configurations.configureInstance(meta, conf, metaProps, (fatal) ? metaPlugin.getProperty() : null);
(fatal) ? getProperty() : null); Configurations.configureInstance(meta, conf, metaProps, (fatal) ? metaPlugin.getProperty() : null);
(fatal) ? getProperty() : null); Configurations.configureInstance(meta, conf, metaProps, (fatal) ? metaPlugin.getProperty() : null);