AbstractBeanDefinition setBeanClass - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for AbstractBeanDefinition setBeanClass method.

This code example shows how to use the following methods:setBeanClass, setBeanClassName, setLazyInit, setScope, validate
	@Override 
	protected final AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {
		BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition();
		String parentName = getParentName(element);
		if (parentName != null) {
			builder.getRawBeanDefinition().setParentName(parentName);
		} 
		Class<?> beanClass = getBeanClass(element);
		if (beanClass != null) {
			builder.getRawBeanDefinition().setBeanClass(beanClass);
		} 
		else { 
			String beanClassName = getBeanClassName(element);
			if (beanClassName != null) {
				builder.getRawBeanDefinition().setBeanClassName(beanClassName);
			} 
		} 
		builder.getRawBeanDefinition().setSource(parserContext.extractSource(element));
		if (parserContext.isNested()) {
			// Inner bean definition must receive same scope as containing bean. 

7
CodeRank
This code example shows how to use the following methods:setBeanClass, setRole, validate
	static void autoregisterJsrBeansForNamespace(ParserContext parserContext) {
		autoRegisterJobProperties(parserContext);
		autoRegisterBatchPostProcessor(parserContext);
		autoRegisterJsrAutowiredAnnotationBeanPostProcessor(parserContext);
		autoRegisterThreadLocalClassloaderBeanPostProcessor(parserContext);
		autoRegisterBeanScopeBeanFactoryPostProcessor(parserContext);
		autoRegisterBatchPropertyContext(parserContext);
		autoRegisterNamespacePostProcessor(parserContext);
	} 
 
	private static void autoRegisterNamespacePostProcessor(ParserContext parserContext) {
		registerPostProcessor(parserContext, JsrNamespacePostProcessor.class, BeanDefinition.ROLE_INFRASTRUCTURE, JSR_NAMESPACE_POST_PROCESSOR);
	} 
 
	private static void autoRegisterBeanScopeBeanFactoryPostProcessor( 
			ParserContext parserContext) {
		registerPostProcessor(parserContext, JsrBeanScopeBeanFactoryPostProcessor.class, BeanDefinition.ROLE_INFRASTRUCTURE, BEAN_SCOPE_POST_PROCESSOR_BEAN_NAME);
	} 
 
	private static void autoRegisterBatchPostProcessor(ParserContext parserContext) {

7
CodeRank
This code example shows how to use the following methods:setBeanClass, setFactoryMethodName, validate

7
CodeRank
This code example shows how to use the following methods:setBeanClass, setFactoryMethodName, validate

7
CodeRank
This code example shows how to use the following methods:setBeanClass, setFactoryMethodName, validate

7
CodeRank
This code example shows how to use the following methods:setBeanClass, validate

6
CodeRank
This code example shows how to use the following methods:setBeanClass, setFactoryMethodName
This code example shows how to use the following methods:setBeanClass, setFactoryMethodName, validate

7
CodeRank
This code example shows how to use the following methods:setBeanClass, validate

6
CodeRank
This code example shows how to use the following methods:setBeanClass, setFactoryMethodName, validate

7
CodeRank
setBeanClass Method Overview
Specify the class for this bean.
See Code Examples for other Spring Framework AbstractBeanDefinition Methods: