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

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

There is a newer version: 62
Show newest version
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;

import static com.guicedee.guicedinjection.json.StaticStrings.*;

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));
		return deploymentInfo;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy