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

com.guicedee.guicedservlets.jsf.implementations.GuicedJSFDeploymentInfoConfiguration Maven / Gradle / Ivy

package com.guicedee.guicedservlets.jsf.implementations;

import com.guicedee.guicedservlets.undertow.services.UndertowDeploymentConfigurator;
import io.undertow.servlet.api.DeploymentInfo;
import io.undertow.servlet.api.ListenerInfo;

public class GuicedJSFDeploymentInfoConfiguration implements UndertowDeploymentConfigurator
{

	@Override
	public DeploymentInfo configure(DeploymentInfo deploymentInfo)
	{
		deploymentInfo.addServletContextAttribute("com.sun.faces.facesInitializerMappingsAdded", Boolean.TRUE)
				 .addListener(new ListenerInfo(com.sun.faces.config.ConfigureListener.class));

		//deploymentInfo.addInitParameter("javax.faces.CONFIG_FILES",facesConfigMergedFilename);

		return deploymentInfo;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy