List of usage examples for org.springframework.beans.factory.support BeanDefinitionBuilder addConstructorArgValue
public BeanDefinitionBuilder addConstructorArgValue(@Nullable Object value)
From source file:ar.com.zauber.spring.taglib.ErrorLoggerWrapperClosureBeanDefinitionParser.java
/** @see AbstractSingleBeanDefinitionParser#doParse(Element, ParserContext, * BeanDefinitionBuilder) *///w ww. j ava2 s . c om @Override protected final void doParse(final Element e, final ParserContext parserContext, final BeanDefinitionBuilder builder) { builder.addConstructorArgValue( parserContext.getDelegate().parseListElement(e, builder.getBeanDefinition()).iterator().next()); }
From source file:ar.com.zauber.spring.taglib.AndPredicateBeanDefinitionParser.java
/** @see AbstractSingleBeanDefinitionParser#doParse(Element, ParserContext, * BeanDefinitionBuilder) *//*from www . ja v a 2 s . c o m*/ @Override protected final void doParse(final Element e, final ParserContext parserContext, final BeanDefinitionBuilder builder) { builder.addConstructorArgValue( parserContext.getDelegate().parseListElement(e, builder.getBeanDefinition())); }
From source file:ar.com.zauber.spring.taglib.ExecutorClosureSingleBeanDefinitionParser.java
/** @see AbstractSingleBeanDefinitionParser#doParse(Element, ParserContext, * BeanDefinitionBuilder) *//*from w w w .j a v a2 s. co m*/ @Override protected final void doParse(final Element e, final ParserContext parserContext, final BeanDefinitionBuilder builder) { builder.addConstructorArgValue( parserContext.getDelegate().parseListElement(e, builder.getBeanDefinition()).iterator().next()); builder.addConstructorArgReference(e.getAttribute("executor-ref")); }
From source file:ar.com.zauber.spring.taglib.ThrowableMaxAmountPredicateBeanDefinitionParser.java
/** @see AbstractSingleBeanDefinitionParser#doParse(Element, ParserContext, * BeanDefinitionBuilder) *//* w ww .ja va2 s . c o m*/ @Override protected final void doParse(final Element e, final ParserContext parserContext, final BeanDefinitionBuilder builder) { builder.addConstructorArgValue(e.getAttribute("max")); }
From source file:com.trigonic.utils.spring.beans.StringBeanDefinitionParser.java
@Override protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) { super.doParse(element, parserContext, builder); builder.addConstructorArgValue(element.getTextContent()); }
From source file:uk.co.bssd.monitoring.spring.CsvFileLoggerBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { String id = element.getAttribute("id"); bean.addConstructorArgValue(id); String filename = element.getAttribute("filename"); if (!StringUtils.hasText(filename)) { filename = id + ".csv"; }/*from w w w . j av a 2s . c om*/ bean.addConstructorArgValue(filename); }
From source file:org.jasypt.spring31.xml.encryption.EncryptorBeanDefinitionParser.java
@Override protected void doParse(final Element element, final BeanDefinitionBuilder builder) { builder.addConstructorArgValue(new Integer(this.encryptorType)); processStringAttribute(element, builder, PARAM_ALGORITHM, "algorithm"); processBeanAttribute(element, builder, PARAM_CONFIG_BEAN, "config"); processIntegerAttribute(element, builder, PARAM_KEY_OBTENTION_ITERATIONS, "keyObtentionIterations"); processStringAttribute(element, builder, PARAM_PASSWORD, "password"); processIntegerAttribute(element, builder, PARAM_POOL_SIZE, "poolSize"); processBeanAttribute(element, builder, PARAM_PROVIDER_BEAN, "provider"); processStringAttribute(element, builder, PARAM_PROVIDER_NAME, "providerName"); processBeanAttribute(element, builder, PARAM_SALT_GENERATOR_BEAN, "saltGenerator"); processStringAttribute(element, builder, PARAM_STRING_OUTPUT_TYPE, "stringOutputType"); String scope = element.getAttribute(SCOPE_ATTRIBUTE); if (StringUtils.hasLength(scope)) { builder.setScope(scope);/*from w w w . j av a2s. c o m*/ } }
From source file:edu.internet2.middleware.shibboleth.idp.config.profile.SAMLMetadataHandlerBeanDefinitionParser.java
/** {@inheritDoc} */ protected void doParse(Element config, ParserContext parserContext, BeanDefinitionBuilder builder) { super.doParse(config, builder); builder.addConstructorArgValue(config.getAttributeNS(null, "metadataFile")); String parserPoolRef = DatatypeHelper.safeTrimOrNullString(config.getAttributeNS(null, "parserPoolRef")); if (parserPoolRef == null) { parserPoolRef = "shibboleth.ParserPool"; }//from w w w. j av a 2 s. co m builder.addConstructorArgReference(parserPoolRef); }
From source file:edu.internet2.middleware.psp.spring.ChangeLogAttributeAssignTypeFilterBeanDefinitionParser.java
/** {@inheritDoc} */ protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) { super.doParse(element, parserContext, builder); builder.addConstructorArgValue(element.getAttributeNS(null, "attributeAssignType")); }
From source file:edu.internet2.middleware.psp.spring.ChangeLogAuditFilterBeanDefinitionParser.java
/** {@inheritDoc} */ protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) { super.doParse(element, parserContext, builder); builder.addConstructorArgValue(element.getAttributeNS(null, "category")); builder.addConstructorArgValue(element.getAttributeNS(null, "action")); }