Example usage for org.springframework.beans.factory.config TypedStringValue TypedStringValue

List of usage examples for org.springframework.beans.factory.config TypedStringValue TypedStringValue

Introduction

In this page you can find the example usage for org.springframework.beans.factory.config TypedStringValue TypedStringValue.

Prototype

public TypedStringValue(@Nullable String value) 

Source Link

Document

Create a new TypedStringValue for the given String value.

Usage

From source file:org.springframework.integration.config.xml.PointToPointChannelParser.java

private boolean parseStoreRef(BeanDefinitionBuilder builder, Element queueElement, String channel) {
    String storeRef = queueElement.getAttribute("message-store");
    if (StringUtils.hasText(storeRef)) {
        BeanDefinitionBuilder queueBuilder = BeanDefinitionBuilder
                .genericBeanDefinition(MessageGroupQueue.class);
        queueBuilder.addConstructorArgReference(storeRef);
        queueBuilder.addConstructorArgValue(new TypedStringValue(storeRef).getValue() + ":" + channel);
        parseQueueCapacity(queueBuilder, queueElement);
        builder.addConstructorArgValue(queueBuilder.getBeanDefinition());
        return true;
    }/*from  w  w  w .  ja  v a2 s. c o  m*/
    return false;
}