Class InitHandler

java.lang.Object
org.fugerit.java.doc.base.config.InitHandler

public class InitHandler extends Object
DocTypeHandler Initializer. If AOT initialization is needed it is possible to call these Facade.
  • Field Details

  • Method Details

    • initDocAllAsync

      public static void initDocAllAsync(Collection<DocTypeHandler> handlers)

      Initialize a collection of handlers in different threads.

      Parameters:
      handlers - the handlers to initialize
    • initDocAll

      public static Map<DocTypeHandler,Exception> initDocAll(Collection<DocTypeHandler> handlers)

      Initialize a collection of handlers

      Parameters:
      handlers - the handlers to initialize
      Returns:
      the map of handlers which failed startup with their exception if any
    • initDoc

      public static boolean initDoc(DocTypeHandler handler) throws org.fugerit.java.core.cfg.ConfigException

      Initialize one handler.

      Parameters:
      handler - the handler to initialize
      Returns:
      if the handler has been initialized
      Throws:
      org.fugerit.java.core.cfg.ConfigException - in case of exceptions
    • initDoc

      public static boolean initDoc(DocTypeHandler handler, boolean throwEx) throws org.fugerit.java.core.cfg.ConfigException

      Initialize one handler.

      Parameters:
      handler - the handler to initialize
      throwEx - true if should throw exception in case of error
      Returns:
      if the handler has been initialized
      Throws:
      org.fugerit.java.core.cfg.ConfigException - in case of exceptions
    • initDocAsync

      public static void initDocAsync(DocTypeHandler handler)

      Initialize one handler in a different thread.

      Exceptions will be just logged.

      Parameters:
      handler - the handler to initialize