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

com.github.persapiens.jsfboot.annotations.JsfCdiToSpringBeanFactoryPostProcessor Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
//
// Copyright described at LICENSE.txt
//
package com.github.persapiens.jsfboot.annotations;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

/**
 * Add custom jsf cdi scope implementations
 */
public class JsfCdiToSpringBeanFactoryPostProcessor implements BeanFactoryPostProcessor
{
    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory clbf) throws BeansException {
        clbf.registerScope("view", new ViewScope());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy