예제 #1
0
  /**
   * 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);
  }
예제 #2
0
 @Override
 @SuppressWarnings({"rawtypes", "unchecked"})
 public void init(NamedList args) {
   this.initParams = args;
   super.init(args);
 }
예제 #3
0
 @Override
 @SuppressWarnings("unchecked")
 public void init(NamedList args) {
   super.init(args);
   this.initParams = args;
 }