Examples of ProfileAwareCompositeComponentDefinition


Examples of org.springframework.ide.eclipse.beans.core.internal.model.ProfileAwareCompositeComponentDefinition

          Map<String, Object> profileAnnotationMetadata = newBeanDefinition.getMetadata().
              getAnnotationAttributes("org.springframework.context.annotation.Profile");
          if (profileAnnotationMetadata != null && profileAnnotationMetadata.get("value") != null
              && profileAnnotationMetadata.get("value") instanceof String[]) {
            String[] profiles = (String[]) profileAnnotationMetadata.get("value");
            ProfileAwareCompositeComponentDefinition profileAware = new ProfileAwareCompositeComponentDefinition(beanName, newBeanDefinition.getSource(), profiles);
            profileAware.addNestedComponent(new BeanComponentDefinition(newBeanDefinition, beanName));
            beansConfigRegistrationSupport.registerComponent(profileAware);
            profileDefinedBeans.add(beanName);
          }
          else {
            beansConfigRegistrationSupport.registerComponent(new BeanComponentDefinition(newBeanDefinition,
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.