All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mapfish.print.ImageIOPluginScanner Maven / Gradle / Ivy

There is a newer version: 3.22.0
Show newest version
package org.mapfish.print;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

import javax.imageio.ImageIO;

/**
 * Scans for ImageIO plugins when the application context is loaded.
 */
public final class ImageIOPluginScanner implements ApplicationListener {
    /**
     * Ensure that extensions for ImageIO (like the reader and writer for TIFF) are registered. This is
     * required for certain Windows systems.
     *
     * @param event the startup event.  Not needed here but required for API.
     */
    @Override
    public void onApplicationEvent(final ContextRefreshedEvent event) {
        ImageIO.scanForPlugins();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy