Results 1 to 2 of 2

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

  1. #1
    Join Date
    Mar 2005
    Posts
    144

    Default 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. #2
    Join Date
    Aug 2004
    Posts
    1,099

    Default

    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.
    Craig Walls
    Spring Social Project Lead

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •