Code example for ClassPathBeanDefinitionScanner

Methods: buildGenericDataProviderDefinition, buildGenericRepositoryDefinition, registerBeanDefinition

0
            } 
            else if (clazz.isAnnotationPresent(NavigationBox.class)) {
                moduleConfiguration.addBox(new BoxConfiguration(clazz));
            } 
            else if (clazz.isAnnotationPresent(GenericRepository.class)) {
                BeanDefinitionHolder beanDefinitionHolder = buildGenericRepositoryDefinition(clazz);
                super.registerBeanDefinition(beanDefinitionHolder, registry);
            } 
            else if (clazz.isAnnotationPresent(Entity.class)
                    || clazz.isAnnotationPresent(org.hibernate.annotations.Entity.class)) {
                moduleConfiguration.addEntity(clazz);
                if (clazz.isAnnotationPresent(RegisterGenericDataProvider.class)) {
                    BeanDefinitionHolder beanDefinitionHolder = buildGenericDataProviderDefinition(clazz);
                    super.registerBeanDefinition(beanDefinitionHolder, registry);
                } 
            } 
            else { 
                super.registerBeanDefinition(definitionHolder, registry);
            } 
 
        } catch (ClassNotFoundException e) {
            logger.fatal(e);
        } 
Contextual code suggestions in your IDE  Get Codota for Java