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

com.github.taccisum.shiro.web.autoconfigure.AbstractShiroBeanAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package com.github.taccisum.shiro.web.autoconfigure;

import org.apache.shiro.event.EventBus;
import org.apache.shiro.spring.LifecycleBeanPostProcessor;
import org.apache.shiro.spring.ShiroEventBusBeanPostProcessor;
import org.apache.shiro.spring.config.AbstractShiroBeanConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

/**
 * @author tac - [email protected]
 * @since 2018/9/3
 */
public class AbstractShiroBeanAutoConfiguration extends AbstractShiroBeanConfiguration {
    @Bean
    @ConditionalOnMissingBean
    @Override
    public LifecycleBeanPostProcessor lifecycleBeanPostProcessor() {
        return super.lifecycleBeanPostProcessor();
    }

    @Bean
    @ConditionalOnMissingBean
    @Override
    public EventBus eventBus() {
        return super.eventBus();
    }

    @Bean
    @ConditionalOnMissingBean
    @Override
    public ShiroEventBusBeanPostProcessor shiroEventBusAwareBeanPostProcessor() {
        return super.shiroEventBusAwareBeanPostProcessor();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy