Package org.springframework.context

Examples of org.springframework.context.ApplicationContext.containsBeanDefinition()


       
        ApplicationContext currentContext = this.applicationContext;
       
        final String beanName = getBeanNameToSearchFor();
        if (getIncludeCurrentBeanFactory()) {
            if (currentContext.containsBeanDefinition(beanName)) {
                return currentContext;
            }
        }
       
        ApplicationContext parentContext = applicationContext.getParent();
View Full Code Here


       
        ApplicationContext currentContext = this.applicationContext;
       
        final String beanName = getBeanNameToSearchFor();
        if (getIncludeCurrentBeanFactory()) {
            if (currentContext.containsBeanDefinition(beanName)) {
                return currentContext;
            }
        }
       
        ApplicationContext parentContext = applicationContext.getParent();
View Full Code Here

    ApplicationContext context = getApplicationContext();
    Class<?> handlerType = context.getType(beanName);
    RequestMapping mapping = AnnotationUtils.findAnnotation(handlerType, RequestMapping.class);

    if (mapping == null && context instanceof ConfigurableApplicationContext &&
        context.containsBeanDefinition(beanName)) {
      ConfigurableApplicationContext cac = (ConfigurableApplicationContext) context;
      BeanDefinition bd = cac.getBeanFactory().getMergedBeanDefinition(beanName);
      if (bd instanceof AbstractBeanDefinition) {
        AbstractBeanDefinition abd = (AbstractBeanDefinition) bd;
        if (abd.hasBeanClass()) {
View Full Code Here

    for (String beanName : beanNames) {
      ApplicationContext context = getApplicationContext();
      Class<?> handlerType = context.getType(beanName);
      RequestMapping mapping = AnnotationUtils.findAnnotation(handlerType, RequestMapping.class);
      if (mapping == null && context instanceof ConfigurableApplicationContext &&
          context.containsBeanDefinition(beanName)) {
        ConfigurableApplicationContext cac = (ConfigurableApplicationContext) context;
        BeanDefinition bd = cac.getBeanFactory().getMergedBeanDefinition(beanName);
        if (bd instanceof AbstractBeanDefinition) {
          AbstractBeanDefinition abd = (AbstractBeanDefinition) bd;
          if (abd.hasBeanClass()) {
View Full Code Here

    ApplicationContext context = getApplicationContext();
    Class<?> handlerType = context.getType(beanName);
    RequestMapping mapping = AnnotationUtils.findAnnotation(handlerType, RequestMapping.class);

    if (mapping == null && context instanceof ConfigurableApplicationContext &&
        context.containsBeanDefinition(beanName)) {
      ConfigurableApplicationContext cac = (ConfigurableApplicationContext) context;
      BeanDefinition bd = cac.getBeanFactory().getMergedBeanDefinition(beanName);
      if (bd instanceof AbstractBeanDefinition) {
        AbstractBeanDefinition abd = (AbstractBeanDefinition) bd;
        if (abd.hasBeanClass()) {
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.