Java Code Examples for org.springframework.messaging.handler.annotation.DestinationVariable

Following code examples demonstrate how to use org.springframework.messaging.handler.annotation.DestinationVariablefrom spring-framework. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.springframework.messaging.handler.annotation.DestinationVariableand various code implementation of this class.

	protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
		DestinationVariable annotation = parameter.getParameterAnnotation(DestinationVariable.class);
		return new DestinationVariableNamedValueInfo(annotation);

	protected void handleMissingValue(String name, MethodParameter parameter, Message<?> message) {
		throw new MessageHandlingException(message, "Missing path template variable '" + name +
				"' for method parameter type [" + parameter.getParameterType() + "]");

Annotation that indicates a method parameter should be bound to a template variable in a destination

template string. Supported on message handling methods such as MessageMapping @MessageMapping.

A @DestinationVariable template variable is always required. @author Brian Clozel @author Rossen Stoyanchev @since 4.0 @see org.springframework.messaging.handler.annotation.MessageMapping @see

Read More