Spring Social
  1. Spring Social
  2. SOCIAL-147

Documentation for ConnectionRepository injection should be clarified when using scoped proxies and Provider

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.RC1
    • Component/s: None
    • Labels:
      None

      Description

      For the lack of proper Summary title, feel free to correct it.

      The documentation is not clear in specifying the PROS and CONS when injecting ConnectionRepository via @Inject, @Resource, or @Autowired. The documentation should show examples on how to inject a ConnectionRepository not only via @Inject but also other annotations that Spring developers are used to.

      For @Resource, I realized the need for declaring a <aop:scoped-proxy proxy-target-class="false"/>. For example:

      {<bean id="connectionRepository" factory-method="createConnectionRepository"
      factory-bean="usersConnectionRepository" scope="request">
      <constructor-arg value="#

      {request.userPrincipal.name}

      " />
      <aop:scoped-proxy proxy-target-class="false"/>
      </bean>}

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Mark Serrano
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: