/** * Instantiate the plugins as instances of the given class. */ public Object instantiate(Class<?> elemType, Configuration conf, boolean fatal) { Object[] ret; if (_names.length == 0) ret = (Object[]) Array.newInstance(elemType, 0); else { ret = (Object[]) Array.newInstance(elemType, _names.length); for (int i = 0; i < ret.length; i++) { ret[i] = newInstance(_names[i], elemType, conf, fatal); Configurations.configureInstance(ret[i], conf, _props[i], getProperty()); } } set(ret, true); return ret; }
/** * Instantiate the plugins as instances of the given class. */ public Object instantiate(Class<?> elemType, Configuration conf, boolean fatal) { Object[] ret; if (_names.length == 0) ret = (Object[]) Array.newInstance(elemType, 0); else { ret = (Object[]) Array.newInstance(elemType, _names.length); for (int i = 0; i < ret.length; i++) { ret[i] = newInstance(_names[i], elemType, conf, fatal); Configurations.configureInstance(ret[i], conf, _props[i], getProperty()); } } set(ret, true); return ret; }
/** * Instantiate the plugins as instances of the given class. */ public Object instantiate(Class elemType, Configuration conf, boolean fatal) { Object[] ret; if (_names.length == 0) ret = (Object[]) Array.newInstance(elemType, 0); else { ret = (Object[]) Array.newInstance(elemType, _names.length); for (int i = 0; i < ret.length; i++) { ret[i] = newInstance(_names[i], elemType, conf, fatal); Configurations.configureInstance(ret[i], conf, _props[i], getProperty()); } } set(ret, true); return ret; }
/** * Instantiate the plugins as instances of the given class. */ public Object instantiate(Class<?> elemType, Configuration conf, boolean fatal) { Object[] ret; if (_names.length == 0) ret = (Object[]) Array.newInstance(elemType, 0); else { ret = (Object[]) Array.newInstance(elemType, _names.length); for (int i = 0; i < ret.length; i++) { ret[i] = newInstance(_names[i], elemType, conf, fatal); Configurations.configureInstance(ret[i], conf, _props[i], getProperty()); } } set(ret, true); return ret; }