Allow data handler to be configured from within web.xml
-------------------------------------------------------

                 Key: SHINDIG-154
                 URL: https://issues.apache.org/jira/browse/SHINDIG-154
             Project: Shindig
          Issue Type: Improvement
          Components: Gadgets Server - Java
            Reporter: Ross Gardler
         Attachments: handlerInjection.diff

Patch to allow OpenSocialDataHandler to be configured with custom handlers from 
within web.xml. e.g.:

  <!-- Serve social data -->
  <servlet>
    <servlet-name>socialdata</servlet-name>
    <servlet-class>
      org.apache.shindig.social.GadgetDataServlet
    </servlet-class>
<!-- 
If the default handler is used then specific handlers can be injected
using the peopleService, dataService, activitiesService paramaters.
-->    
    <init-param>
      <param-name>peopleService</param-name>
      
<param-value>org.apache.shindig.social.samplecontainer.BasicPeopleService</param-value>
    </init-param>
    <init-param>
      <param-name>dataService</param-name>
      
<param-value>org.apache.shindig.social.samplecontainer.BasicDataService</param-value>
    </init-param>
    <init-param>
      <param-name>activitiesService</param-name>
      
<param-value>org.apache.shindig.social.samplecontainer.BasicActivitiesService</param-value>
    </init-param>
<!--
    <init-param>
      Add your custom classes that handle opensocial requests here
      <param-name>handlers</param-name>
      <parame-value>com.muysite.OpenSocialDataHandler</param-value>
    </init-param> 
-->
  </servlet>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to