Class ContentEngines


  • public abstract class ContentEngines
    extends java.lang.Object
    • Field Detail

      • isInitialized

        protected static boolean isInitialized
      • contentEngineMap

        protected static java.util.Map<java.lang.String,​ContentEngine> contentEngineMap
      • contentEngineInfosByName

        protected static java.util.Map<java.lang.String,​org.flowable.common.engine.impl.EngineInfo> contentEngineInfosByName
      • contentEngineInfosByResourceUrl

        protected static java.util.Map<java.lang.String,​org.flowable.common.engine.impl.EngineInfo> contentEngineInfosByResourceUrl
      • contentEngineInfos

        protected static java.util.List<org.flowable.common.engine.impl.EngineInfo> contentEngineInfos
    • Constructor Detail

      • ContentEngines

        public ContentEngines()
    • Method Detail

      • init

        public static void init()
        Initializes all content engines that can be found on the classpath for resources flowable.content.cfg.xml and for resources flowable-context.xml (Spring style configuration).
      • initContentEngineFromSpringResource

        protected static void initContentEngineFromSpringResource​(java.net.URL resource)
      • registerContentEngine

        public static void registerContentEngine​(ContentEngine contentEngine)
        Registers the given content engine. No ContentEngine will be available for this content engine. An engine that is registered will be closed when the destroy() is called.
      • unregister

        public static void unregister​(ContentEngine contentEngine)
        Unregisters the given content engine.
      • buildContentEngine

        protected static ContentEngine buildContentEngine​(java.net.URL resource)
      • getContentEngineInfos

        public static java.util.List<org.flowable.common.engine.impl.EngineInfo> getContentEngineInfos()
        Get initialization results.
      • getContentEngineInfo

        public static org.flowable.common.engine.impl.EngineInfo getContentEngineInfo​(java.lang.String contentEngineName)
        Get initialization results. Only info will we available for content engines which were added in the init(). No EngineInfo is available for engines which were registered programmatically.
      • getDefaultContentEngine

        public static ContentEngine getDefaultContentEngine()
      • getContentEngine

        public static ContentEngine getContentEngine​(java.lang.String contentEngineName)
        Obtain a content engine by name.
        Parameters:
        contentEngineName - is the name of the content engine or null for the default content engine.
      • retry

        public static org.flowable.common.engine.impl.EngineInfo retry​(java.lang.String resourceUrl)
        Retries to initialize a content engine that previously failed.
      • getContentEngines

        public static java.util.Map<java.lang.String,​ContentEngine> getContentEngines()
        Provides access to content engine to application clients in a managed server environment.
      • destroy

        public static void destroy()
        Closes all content engines. This method should be called when the server shuts down.
      • isInitialized

        public static boolean isInitialized()
      • setInitialized

        public static void setInitialized​(boolean isInitialized)