Example usage for org.springframework.beans.factory.support BeanDefinitionBuilder addPropertyReference

List of usage examples for org.springframework.beans.factory.support BeanDefinitionBuilder addPropertyReference

Introduction

In this page you can find the example usage for org.springframework.beans.factory.support BeanDefinitionBuilder addPropertyReference.

Prototype

public BeanDefinitionBuilder addPropertyReference(String name, String beanName) 

Source Link

Document

Add a reference to the specified bean name under the property specified.

Usage

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.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.VerifierWithChoosersByAliasBeanDefinitionParser.java

@Override
protected void doParse(Element element, BeanDefinitionBuilder bean) {
    bean.addPropertyReference("publicKeyRegistryByAlias", element.getAttribute("publicKeyRegistryByAlias-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.SignerWithChoosersByAliasBeanDefinitionParser.java

@Override
protected void doParse(Element element, BeanDefinitionBuilder bean) {
    bean.addPropertyReference("privateKeyRegistryByAlias",
            element.getAttribute("privateKeyRegistryByAlias-ref"));
    bean.addPropertyValue("algorithm", element.getAttribute("algorithm"));
    bean.addPropertyValue("provider", element.getAttribute("provider"));
}

From source file:com.springcryptoutils.core.spring.signature.Base64EncodedSignerWithChooserByPrivateKeyIdBeanDefinitionParser.java

@Override
protected void doParse(Element element, BeanDefinitionBuilder bean) {
    bean.addPropertyReference("privateKeyMap", element.getAttribute("privateKeyMap-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.Base64EncodedVerifierWithChooserByPublicKeyIdBeanDefinitionParser.java

@Override
protected void doParse(Element element, BeanDefinitionBuilder bean) {
    bean.addPropertyReference("publicKeyMap", element.getAttribute("publicKeyMap-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.Base64EncodedVerifierWithChoosersByAliasBeanDefinitionParser.java

@Override
protected void doParse(Element element, BeanDefinitionBuilder bean) {
    bean.addPropertyReference("publicKeyRegistryByAlias", element.getAttribute("publicKeyRegistryByAlias-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.Base64EncodedSignerWithChoosersByAliasBeanDefinitionParser.java

@Override
protected void doParse(Element element, BeanDefinitionBuilder bean) {
    bean.addPropertyReference("privateKeyRegistryByAlias",
            element.getAttribute("privateKeyRegistryByAlias-ref"));
    bean.addPropertyValue("algorithm", element.getAttribute("algorithm"));
    bean.addPropertyValue("charsetName", element.getAttribute("charset"));
    bean.addPropertyValue("provider", element.getAttribute("provider"));
}

From source file:nz.co.senanque.madura.spring.ConfigBeanDefinitionParser.java

protected void doParse(Element element, BeanDefinitionBuilder bean) {
    bean.addPropertyReference("configuration", "configuration");
    String key = element.getAttribute("key");
    if (StringUtils.hasText(key)) {
        bean.addPropertyValue("key", key);
    }/*w w w.  ja  v a2 s . c om*/
}