Examples of addConstructorArg()


Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg()

        }

        BeanDefinitionBuilder jaxbbean
            = BeanDefinitionBuilder.rootBeanDefinition(TLSClientParametersConfig.class);
        jaxbbean.getRawBeanDefinition().setFactoryMethodName("createTLSClientParameters");
        jaxbbean.addConstructorArg(writer.toString());
        bean.addPropertyValue("tlsClientParameters", jaxbbean.getBeanDefinition());
    }
   
    /**
     * This method finds the class or bean associated with the named element
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg()

                xmlWriter.flush();
   
                BeanDefinitionBuilder jaxbbean
                    = BeanDefinitionBuilder.rootBeanDefinition(JAXBBeanFactory.class);
                jaxbbean.getRawBeanDefinition().setFactoryMethodName("createJAXBBean");
                jaxbbean.addConstructorArg(getContext(c));
                jaxbbean.addConstructorArg(writer.toString());
                jaxbbean.addConstructorArg(c);
                bean.addPropertyValue(propertyName, jaxbbean.getBeanDefinition());
            } catch (Exception ex) {
                Unmarshaller u = getContext(c).createUnmarshaller();
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg()

   
                BeanDefinitionBuilder jaxbbean
                    = BeanDefinitionBuilder.rootBeanDefinition(JAXBBeanFactory.class);
                jaxbbean.getRawBeanDefinition().setFactoryMethodName("createJAXBBean");
                jaxbbean.addConstructorArg(getContext(c));
                jaxbbean.addConstructorArg(writer.toString());
                jaxbbean.addConstructorArg(c);
                bean.addPropertyValue(propertyName, jaxbbean.getBeanDefinition());
            } catch (Exception ex) {
                Unmarshaller u = getContext(c).createUnmarshaller();
                Object obj;
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg()

                BeanDefinitionBuilder jaxbbean
                    = BeanDefinitionBuilder.rootBeanDefinition(JAXBBeanFactory.class);
                jaxbbean.getRawBeanDefinition().setFactoryMethodName("createJAXBBean");
                jaxbbean.addConstructorArg(getContext(c));
                jaxbbean.addConstructorArg(writer.toString());
                jaxbbean.addConstructorArg(c);
                bean.addPropertyValue(propertyName, jaxbbean.getBeanDefinition());
            } catch (Exception ex) {
                Unmarshaller u = getContext(c).createUnmarshaller();
                Object obj;
                if (c != null) {
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg()

            = BeanDefinitionBuilder.rootBeanDefinition(cls);
        if (factory != null) {
            jaxbbean.getRawBeanDefinition().setFactoryBeanName(factory.getName());
        }
        jaxbbean.getRawBeanDefinition().setFactoryMethodName(method);
        jaxbbean.addConstructorArg(writer.toString());
        jaxbbean.addConstructorArg(getContext(jaxbClass));
        if (args != null) {
            for (Object o : args) {
                jaxbbean.addConstructorArg(o);
            }               
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg()

        if (factory != null) {
            jaxbbean.getRawBeanDefinition().setFactoryBeanName(factory.getName());
        }
        jaxbbean.getRawBeanDefinition().setFactoryMethodName(method);
        jaxbbean.addConstructorArg(writer.toString());
        jaxbbean.addConstructorArg(getContext(jaxbClass));
        if (args != null) {
            for (Object o : args) {
                jaxbbean.addConstructorArg(o);
            }               
        }
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg()

        jaxbbean.getRawBeanDefinition().setFactoryMethodName(method);
        jaxbbean.addConstructorArg(writer.toString());
        jaxbbean.addConstructorArg(getContext(jaxbClass));
        if (args != null) {
            for (Object o : args) {
                jaxbbean.addConstructorArg(o);
            }               
        }
        return jaxbbean.getBeanDefinition();
    }
   
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg()

   * DeclareParentsAdvisor with the BeanDefinitionRegistry encapsulated in the
   * supplied ParserContext.
   */
  private AbstractBeanDefinition parseDeclareParents(Element declareParentsElement, ParserContext parserContext) {
    BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(DeclareParentsAdvisor.class);
    builder.addConstructorArg(declareParentsElement.getAttribute(IMPLEMENT_INTERFACE));
    builder.addConstructorArg(declareParentsElement.getAttribute(TYPE_PATTERN));
   
    String defaultImpl = declareParentsElement.getAttribute(DEFAULT_IMPL);
    String delegateRef = declareParentsElement.getAttribute(DELEGATE_REF);
   
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg()

   * supplied ParserContext.
   */
  private AbstractBeanDefinition parseDeclareParents(Element declareParentsElement, ParserContext parserContext) {
    BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(DeclareParentsAdvisor.class);
    builder.addConstructorArg(declareParentsElement.getAttribute(IMPLEMENT_INTERFACE));
    builder.addConstructorArg(declareParentsElement.getAttribute(TYPE_PATTERN));
   
    String defaultImpl = declareParentsElement.getAttribute(DEFAULT_IMPL);
    String delegateRef = declareParentsElement.getAttribute(DELEGATE_REF);
   
    if (StringUtils.hasText(defaultImpl) && !StringUtils.hasText(delegateRef)) {
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg()

   
    String defaultImpl = declareParentsElement.getAttribute(DEFAULT_IMPL);
    String delegateRef = declareParentsElement.getAttribute(DELEGATE_REF);
   
    if (StringUtils.hasText(defaultImpl) && !StringUtils.hasText(delegateRef)) {
      builder.addConstructorArg(defaultImpl);
    } else if (StringUtils.hasText(delegateRef) && !StringUtils.hasText(defaultImpl)) {
      builder.addConstructorArgReference(delegateRef);
    } else {
      parserContext.getReaderContext().error(
          "Exactly one of the " + DEFAULT_IMPL + " or " + DELEGATE_REF + " attributes must be specified",
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.