Announcement Announcement Module
Collapse
No announcement yet.
In Template files, which is the preferred pattern for registering modules? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    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?

  • #2
    In short, the TripIt and LinkedIn projects haven't been given as much attention as the Twitter and Facebook projects. That's why they're different. But thanks for pointing out the difference...I'll make a point of lining those up to match.

    The preferred approach is to override the getJsonMessageConverter() method.

    Comment

    Working...
    X