public static BeanDefinitionHolder registerBean ( String beanId , Class < ? > beanClass , ParserContext parserContext , boolean shouldFireEvents ) { return registerBean ( beanId , BeanDefinitionBuilder . genericBeanDefinition ( beanClass ) . getBeanDefinition ( ) , parserContext , shouldFireEvents ) ; }
Creates new bean definition from bean class and registers new bean in parser registry . Returns bean definition holder .