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

com.biz.core.bean.BizXComponentBeanDefinitionScanner Maven / Gradle / Ivy

Go to download

BizX 是一个灵活而高效的业务开发框架, 其中也有很多为业务开发所需要的工具类的提供。

The newest version!
package com.biz.core.bean;

import com.biz.core.annotaion.BizXComponent;
import org.springframework.beans.factory.config.BeanDefinitionHolder;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;
import org.springframework.core.type.filter.AnnotationTypeFilter;

import java.util.Set;

/**
 * @author francis
 * @BizXComponent Bean注入实现类
 * @since 1.0.1
 **/
public class BizXComponentBeanDefinitionScanner extends ClassPathBeanDefinitionScanner {

    public BizXComponentBeanDefinitionScanner(BeanDefinitionRegistry registry, boolean useDefaultFilters) {
        super(registry, useDefaultFilters);
    }

    public void registerFilters() {
        addIncludeFilter(new AnnotationTypeFilter(BizXComponent.class));
    }

    @Override
    public Set doScan(String... basePackages) {
        return super.doScan(basePackages);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy