Spring Framework AnnotationTypeFilter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework AnnotationTypeFilter class.

This code example shows how to use the following methods:
        return new MvcResources("/resources/**", "META-INF/resources/"); 
    } 
 
    @Feature 
    public ComponentScanSpec componentScan() { 
        return new ComponentScanSpec("org.doxla.graphflow.controller").excludeFilters( 
                new AnnotationTypeFilter(Configuration.class), 
                new AnnotationTypeFilter(FeatureConfiguration.class)); 
    } 
 
} 
5
CodeRank
This code example shows how to use the following methods:
    public void packageScanWithAnnotationIncludeFilter() throws Exception {
        setDirty(); 
        ClassPathScanningAmfConversionServiceConfigProcessor configProcessor = new ClassPathScanningAmfConversionServiceConfigProcessor("org.springframework.flex.core.io.domain");
        configProcessor.setBeanClassLoader(getApplicationContext().getClassLoader());
        configProcessor.setResourceLoader(getApplicationContext());
        configProcessor.addIncludeFilter(new AnnotationTypeFilter(XmlRootElement.class));
        configProcessor.afterPropertiesSet();
 
        addStartupProcessor(configProcessor);
        getMessageBroker(); 
 
        assertNotNull(PropertyProxyRegistry.getProxy(new Person()));
        assertFalse(PropertyProxyRegistry 
                .getProxy(new Person()) instanceof SpringPropertyProxy);
        assertNotNull(PropertyProxyRegistry.getProxy(new PersonNP())); 
        assertTrue(PropertyProxyRegistry 
                .getProxy(new PersonNP()) instanceof SpringPropertyProxy); 
    } 
} 
4
CodeRank
This code example shows how to use the following methods:
 
    public DevproofClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry, boolean useDefaultFilters, ModuleConfiguration moduleConfiguration) {
        super(registry, useDefaultFilters);
        this.registry = registry;
        this.moduleConfiguration = moduleConfiguration;
        addIncludeFilter(new AnnotationTypeFilter(ModulePage.class));
        addIncludeFilter(new AnnotationTypeFilter(NavigationBox.class));
        addIncludeFilter(new AnnotationTypeFilter(GenericRepository.class));
        addIncludeFilter(new AnnotationTypeFilter(RegisterGenericDataProvider.class));
        addIncludeFilter(new AnnotationTypeFilter(Entity.class));
        addIncludeFilter(new AnnotationTypeFilter(org.hibernate.annotations.Entity.class));
        registerModuleConfigurationAsSingleton(); 
    } 
 
    private void registerModuleConfigurationAsSingleton() { 
        ConfigurableListableBeanFactory f = (ConfigurableListableBeanFactory)registry;
         String basePackage = moduleConfiguration.getBasePackage();
        if(f.containsBean(basePackage)) {
            throw new IllegalStateException("You tried to register a devproof module twice with the same base-package: " + basePackage + "!");   
        } 
4
CodeRank
This code example shows how to use the following methods:
import org.springframework.core.type.filter.AssignableTypeFilter; 
 
public class AdministrationClassScanner extends TypeFilterClassScanner { 
 
    public AdministrationClassScanner() { 
        super(new AnnotationTypeFilter(Administration.class), new AssignableTypeFilter(AdministrationConfiguration.class)); 
    } 
} 
4
CodeRank