Class ContentEngines

java.lang.Object
com.flowable.content.engine.ContentEngines

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

    Fields 
    Modifier and Type Field Description
    protected static java.util.List<org.flowable.common.engine.impl.EngineInfo> contentEngineInfos  
    protected static java.util.Map<java.lang.String,​org.flowable.common.engine.impl.EngineInfo> contentEngineInfosByName  
    protected static java.util.Map<java.lang.String,​org.flowable.common.engine.impl.EngineInfo> contentEngineInfosByResourceUrl  
    protected static java.util.Map<java.lang.String,​ContentEngine> contentEngineMap  
    protected static boolean isInitialized  
    static java.lang.String NAME_DEFAULT  
  • Constructor Summary

    Constructors 
    Constructor Description
    ContentEngines()  
  • Method Summary

    Modifier and Type Method Description
    protected static ContentEngine buildContentEngine​(java.net.URL resource)  
    static void destroy()
    Closes all content engines.
    static ContentEngine getContentEngine​(java.lang.String contentEngineName)
    Obtain a content engine by name.
    static org.flowable.common.engine.impl.EngineInfo getContentEngineInfo​(java.lang.String contentEngineName)
    Get initialization results.
    static java.util.List<org.flowable.common.engine.impl.EngineInfo> getContentEngineInfos()
    Get initialization results.
    static java.util.Map<java.lang.String,​ContentEngine> getContentEngines()
    Provides access to content engine to application clients in a managed server environment.
    static ContentEngine getDefaultContentEngine()  
    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).
    protected static void initContentEngineFromSpringResource​(java.net.URL resource)  
    static boolean isInitialized()  
    static void registerContentEngine​(ContentEngine contentEngine)
    Registers the given content engine.
    static org.flowable.common.engine.impl.EngineInfo retry​(java.lang.String resourceUrl)
    Retries to initialize a content engine that previously failed.
    static void setInitialized​(boolean isInitialized)  
    static void unregister​(ContentEngine contentEngine)
    Unregisters the given content engine.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • 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)