List of usage examples for org.springframework.beans.factory.support BeanDefinitionBuilder addPropertyValue
public BeanDefinitionBuilder addPropertyValue(String name, @Nullable Object value)
From source file:edu.internet2.middleware.shibboleth.idp.config.profile.authn.ExternalAuthnSystemLoginHandlerBeanDefinitionParser.java
/** {@inheritDoc} */ protected void doParse(Element config, BeanDefinitionBuilder builder) { super.doParse(config, builder); builder.addPropertyValue("externalAuthnPath", DatatypeHelper.safeTrimOrNullString(config.getAttributeNS(null, "externalAuthnPath"))); if (config.hasAttributeNS(null, "supportsForcedAuthentication")) { builder.addPropertyValue("supportsForcedAuthentication", XMLHelper .getAttributeValueAsBoolean(config.getAttributeNodeNS(null, "supportsForcedAuthentication"))); } else {/*w w w . j a v a 2 s. c o m*/ builder.addPropertyValue("supportsForcedAuthentication", false); } if (config.hasAttributeNS(null, "supportsPassiveAuthentication")) { builder.addPropertyValue("supportsPassiveAuthentication", XMLHelper .getAttributeValueAsBoolean(config.getAttributeNodeNS(null, "supportsPassiveAuthentication"))); } else { builder.addPropertyValue("supportsPassiveAuthentication", false); } }
From source file:org.jboss.windup.config.spring.namespace.gate.RegexFileGateBeanParser.java
@Override protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) { BeanDefinitionBuilder beanBuilder = BeanDefinitionBuilder.rootBeanDefinition(RegexFileGateDecorator.class); beanBuilder.addPropertyValue("regexPattern", element.getAttribute("regex")); if (element.hasAttribute("full-path")) { beanBuilder.addPropertyValue("fullPath", element.getAttribute("full-path")); }//from w w w . j av a2 s .c o m SpringNamespaceHandlerUtil.setNestedList(beanBuilder, element, "decorators", parserContext); return beanBuilder.getBeanDefinition(); }
From source file:org.jboss.windup.config.spring.namespace.gate.XPathGateBeanParser.java
@Override protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) { BeanDefinitionBuilder beanBuilder = BeanDefinitionBuilder.rootBeanDefinition(XPathGateDecorator.class); beanBuilder.addPropertyValue("xpathExpression", element.getAttribute("xpath")); SpringNamespaceHandlerUtil.parseNamespaceMap(beanBuilder, element); SpringNamespaceHandlerUtil.setNestedList(beanBuilder, element, "hints", parserContext); SpringNamespaceHandlerUtil.setNestedList(beanBuilder, element, "decorators", parserContext); return beanBuilder.getBeanDefinition(); }
From source file:com.springcryptoutils.core.spring.signature.Base64EncodedSignerBeanDefinitionParser.java
protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyReference("privateKey", element.getAttribute("privateKey-ref")); bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("charsetName", element.getAttribute("charset")); }
From source file:com.springcryptoutils.core.spring.mac.Base64EncodedMacBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyReference("secretKey", element.getAttribute("secretKey-ref")); bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("provider", element.getAttribute("provider")); }
From source file:com.springcryptoutils.core.spring.signature.VerifierBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyReference("publicKey", element.getAttribute("publicKey-ref")); bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("provider", element.getAttribute("provider")); }
From source file:com.springcryptoutils.core.spring.signature.Base64EncodedVerifierBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyReference("publicKey", element.getAttribute("publicKey-ref")); bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("charsetName", element.getAttribute("charset")); bean.addPropertyValue("provider", element.getAttribute("provider")); }
From source file:com.springcryptoutils.core.spring.signature.SignerBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyReference("privateKey", element.getAttribute("privateKey-ref")); bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("provider", element.getAttribute("provider")); }
From source file:com.springcryptoutils.core.spring.signature.VerifierWithChooserByPublicKeyIdBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyReference("publicKeyMap", element.getAttribute("publicKeyMap-ref")); bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("provider", element.getAttribute("provider")); }
From source file:com.springcryptoutils.core.spring.signature.SignerWithChooserByPrivateKeyIdBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyReference("privateKeyMap", element.getAttribute("privateKeyMap-ref")); bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("provider", element.getAttribute("provider")); }