Search in sources :

Example 1 with DestinationVariable

use of org.springframework.messaging.handler.annotation.DestinationVariable in project spring-framework by spring-projects.

the class DestinationVariableMethodArgumentResolver method createNamedValueInfo.

@Override
protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
    DestinationVariable annot = parameter.getParameterAnnotation(DestinationVariable.class);
    Assert.state(annot != null, "No DestinationVariable annotation");
    return new DestinationVariableNamedValueInfo(annot);
}
Also used : DestinationVariable(org.springframework.messaging.handler.annotation.DestinationVariable)

Example 2 with DestinationVariable

use of org.springframework.messaging.handler.annotation.DestinationVariable in project spring-framework by spring-projects.

the class DestinationVariableMethodArgumentResolver method createNamedValueInfo.

@Override
protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
    DestinationVariable annot = parameter.getParameterAnnotation(DestinationVariable.class);
    Assert.state(annot != null, "No DestinationVariable annotation");
    return new DestinationVariableNamedValueInfo(annot);
}
Also used : DestinationVariable(org.springframework.messaging.handler.annotation.DestinationVariable)

Aggregations

DestinationVariable (org.springframework.messaging.handler.annotation.DestinationVariable)2