Package org.fugerit.java.doc.base.config
Class InitHandler
java.lang.Object
org.fugerit.java.doc.base.config.InitHandler
DocTypeHandler Initializer.
If AOT initialization is needed it is possible to call these Facade.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleaninitDoc(DocTypeHandler handler) Initialize one handler.static booleaninitDoc(DocTypeHandler handler, boolean throwEx) Initialize one handler.static Map<DocTypeHandler,Exception> initDocAll(Collection<DocTypeHandler> handlers) Initialize a collection of handlersstatic voidinitDocAllAsync(Collection<DocTypeHandler> handlers) Initialize a collection of handlers in different threads.static voidinitDocAsync(DocTypeHandler handler) Initialize one handler in a different thread.
-
Field Details
-
PATH_INIT_DOC
- See Also:
-
-
Method Details
-
initDocAllAsync
Initialize a collection of handlers in different threads.
- Parameters:
handlers- the handlers to initialize
-
initDocAll
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 initializethrowEx- 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
Initialize one handler in a different thread.
Exceptions will be just logged.
- Parameters:
handler- the handler to initialize
-