spring-integration-aws/src/main/java/org/springframework/integration/aws/sns/config/SnsParserUtils.java
public static BeanDefinitionBuilder getSnsExecutorBuilder(
			final Element element, final ParserContext parserContext) {

		Assert.notNull(element, "The provided element must not be null.");
		Assert.notNull(parserContext,
				"The provided parserContext must not be null.");

		final BeanDefinitionBuilder snsExecutorBuilder = BeanDefinitionBuilder
				.genericBeanDefinition(SnsExecutor.class);

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				snsExecutorBuilder, element, "topic-name");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				snsExecutorBuilder, element, "sns-test-proxy");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				snsExecutorBuilder, element, "aws-credentials-provider");

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				snsExecutorBuilder, element, "region-id");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				snsExecutorBuilder, element, "aws-client-configuration");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				snsExecutorBuilder, element, "message-marshaller");

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				snsExecutorBuilder, element, "topic-arn");

		return snsExecutorBuilder;

	}
public static BeanDefinitionBuilder getSnsExecutorBuilder(
			final Element element, final ParserContext parserContext) {

		Assert.notNull(element, "The provided element must not be null.");
		Assert.notNull(parserContext,
				"The provided parserContext must not be null.");

		final BeanDefinitionBuilder snsExecutorBuilder = BeanDefinitionBuilder
				.genericBeanDefinition(SnsExecutor.class);

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				snsExecutorBuilder, element, "topic-name");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				snsExecutorBuilder, element, "sns-test-proxy");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				snsExecutorBuilder, element, "aws-credentials-provider");

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				snsExecutorBuilder, element, "region-id");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				snsExecutorBuilder, element, "aws-client-configuration");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				snsExecutorBuilder, element, "message-marshaller");

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				snsExecutorBuilder, element, "topic-arn");

		return snsExecutorBuilder;

	}
public static BeanDefinitionBuilder getSnsExecutorBuilder ( final Element element , final ParserContext parserContext ) { Assert . notNull ( element , "The provided element must not be null." ) ; Assert . notNull ( parserContext , "The provided parserContext must not be null." ) ; final BeanDefinitionBuilder snsExecutorBuilder = BeanDefinitionBuilder . genericBeanDefinition ( SnsExecutor . class ) ; IntegrationNamespaceUtils . setValueIfAttributeDefined ( snsExecutorBuilder , element , "topic-name" ) ; IntegrationNamespaceUtils . setReferenceIfAttributeDefined ( snsExecutorBuilder , element , "sns-test-proxy" ) ; IntegrationNamespaceUtils . setReferenceIfAttributeDefined ( snsExecutorBuilder , element , "aws-credentials-provider" ) ; IntegrationNamespaceUtils . setValueIfAttributeDefined ( snsExecutorBuilder , element , "region-id" ) ; IntegrationNamespaceUtils . setReferenceIfAttributeDefined ( snsExecutorBuilder , element , "aws-client-configuration" ) ; IntegrationNamespaceUtils . setReferenceIfAttributeDefined ( snsExecutorBuilder , element , "message-marshaller" ) ; IntegrationNamespaceUtils . setValueIfAttributeDefined ( snsExecutorBuilder , element , "topic-arn" ) ; return snsExecutorBuilder ; }
Create a new {@link BeanDefinitionBuilder} for the class
{@link SnsExecutor}. Initialize the wrapped {@link SnsExecutor} with
common properties.

@param element
Must not be null
@param parserContext
Must not be null
@return The BeanDefinitionBuilder for the SnsExecutor
Create a new { @link BeanDefinitionBuilder } for the class { @link SnsExecutor } . Initialize the wrapped { @link SnsExecutor } with common properties .