Java Code Examples for org.springframework.context.annotation.ImportBeanDefinitionRegistrar

The following examples show how to use org.springframework.context.annotation.ImportBeanDefinitionRegistrar. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
public void importRegistrar(BeanDefinitionRegistry registry, Imported imported) {
	Class<?> type = imported.getType();
	Object bean = context.getAutowireCapableBeanFactory().createBean(type);
	ImportBeanDefinitionRegistrar registrar = (ImportBeanDefinitionRegistrar) bean;
	registrar.registerBeanDefinitions(getMetaData(imported.getSource()), registry, IMPORT_BEAN_NAME_GENERATOR);