Class ImageProvider

java.lang.Object
org.ff4j.web.console.ImageProvider

public class ImageProvider extends Object
Load image as base64 and store them in cache
Author:
Cedrick LUNVEN (@clunven)
  • Method Details

    • getInstance

      public static ImageProvider getInstance()
      Singleton.
      Returns:
      pattern singleton
    • addImageToContext

      public void addImageToContext(org.thymeleaf.context.WebContext ctx, String imageName, ImageProvider.ImageType type)
      Public interface to add images to webcontext for rendering.
      Parameters:
      ctx - thymeleaf context
      imageName - current image name
      type - current image type