Example usage for org.springframework.core ParameterizedTypeReference forType

List of usage examples for org.springframework.core ParameterizedTypeReference forType

Introduction

In this page you can find the example usage for org.springframework.core ParameterizedTypeReference forType.

Prototype

public static <T> ParameterizedTypeReference<T> forType(Type type) 

Source Link

Document

Build a ParameterizedTypeReference wrapping the given type.

Usage

From source file:com.example.SinkExample.java

@Scheduled(fixedRate = 1000)
public void poller() {

    destIn.poll(this.messageHandler, ParameterizedTypeReference.forType(UserMessage.class));
}