Examples of ImportRegistry


Examples of org.springframework.context.annotation.ConfigurationClassParser.ImportRegistry

      this.beanFactory = beanFactory;
    }

    public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
      if (bean instanceof ImportAware) {
        ImportRegistry importRegistry = beanFactory.getBean(ImportRegistry.class);
        String importingClass = importRegistry.getImportingClassFor(bean.getClass().getSuperclass().getName());
        if (importingClass != null) {
          try {
            AnnotationMetadata metadata =
                new SimpleMetadataReaderFactory().getMetadataReader(importingClass).getAnnotationMetadata();
            ((ImportAware) bean).setImportMetadata(metadata);
View Full Code Here

Examples of org.springframework.context.annotation.ConfigurationClassParser.ImportRegistry

      this.beanFactory = beanFactory;
    }

    public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
      if (bean instanceof ImportAware) {
        ImportRegistry importRegistry = this.beanFactory.getBean(IMPORT_REGISTRY_BEAN_NAME, ImportRegistry.class);
        String importingClass = importRegistry.getImportingClassFor(bean.getClass().getSuperclass().getName());
        if (importingClass != null) {
          try {
            AnnotationMetadata metadata =
                new SimpleMetadataReaderFactory().getMetadataReader(importingClass).getAnnotationMetadata();
            ((ImportAware) bean).setImportMetadata(metadata);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.