Quantcast
Channel: Spring Community Forums - Social
Viewing all articles
Browse latest Browse all 145

In Template files, which is the preferred pattern for registering modules?

$
0
0
Using the implementations of the LinkedInTemplate and the TripItTemplate as examples, the constructor calls a private helper method that registers the Jackson module (ie registerLinkedInJsonModule,registerTripItJsonModul e)

Looking at the TwitterTemlate though, it overrides a method (getJsonMessageConverter) to do the same thing. What is the preferred approach? Is there a reason to use one over the other?

Viewing all articles
Browse latest Browse all 145

Trending Articles