org.geoserver.jai.JAIInitializer Maven / Gradle / Ivy
The newest version!
package org.geoserver.jai;
import java.util.List;
import javax.imageio.ImageIO;
import javax.media.jai.JAI;
import javax.media.jai.RecyclingTileFactory;
import org.geoserver.config.ConfigurationListener;
import org.geoserver.config.GeoServer;
import org.geoserver.config.GeoServerInfo;
import org.geoserver.config.GeoServerInitializer;
import org.geoserver.config.ServiceInfo;
import com.sun.media.jai.util.SunTileCache;
/**
* Initializes JAI functionality from configuration.
*
* @author Justin Deoliveira, The Open Planning Project
*
* TODO: we should figure out if we want JAI to be core to the model or a plugin
* ... right now it is both
*
*/
public class JAIInitializer implements GeoServerInitializer {
public void initialize(GeoServer geoServer) throws Exception {
initJAI( geoServer.getGlobal() );
geoServer.addListener( new ConfigurationListener() {
public void handleGlobalChange(GeoServerInfo global,
List propertyNames, List