Ejemplo n.º 1
0
  /**
   * Registers all the supported factories with the given identifiers. If a given identifier is
   * already in use, then that factory is not registered. This method is provided only as a
   * convenience, and any registration that may involve identifier clashes should be done by
   * registering each factory individually.
   */
  public void registerFunctionFactories() {

    for (String id : functionMap.keySet()) {
      FunctionFactoryProxy ffp = (FunctionFactoryProxy) (functionMap.get(id));

      try {
        FunctionFactory.registerFactory(id, ffp);
      } catch (IllegalArgumentException iae) {
        logger.log(
            Level.WARNING, "Couldn't register FunctionFactory: " + id + " (already in use)", iae);
      }
    }
  }