/** * Initialise the component by instantiating our factory class, and initialising the join field. */ @Override @SuppressWarnings("rawtypes") public void init(NamedList args) { super.init(args); try { Class<?> factoryClass = Class.forName((String) args.get(XJoinParameters.INIT_RESULTS_FACTORY)); factory = (XJoinResultsFactory<?>) factoryClass.newInstance(); factory.init((NamedList) args.get(XJoinParameters.EXTERNAL_PREFIX)); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { throw new RuntimeException(e); } joinField = (String) args.get(XJoinParameters.INIT_JOIN_FIELD); }
@Override @SuppressWarnings({"rawtypes", "unchecked"}) public void init(NamedList args) { this.initParams = args; super.init(args); }
@Override @SuppressWarnings("unchecked") public void init(NamedList args) { super.init(args); this.initParams = args; }