Uploaded image for project: '[Read Only] - Hippo Essentials'
  1. [Read Only] - Hippo Essentials
  2. ESSENTIALS-804

Add entry point for content resource providers in spring file

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • 2.1.0
    • None
    • None

    Description

      When you use the Rest services setup tool in Essentials, a file spring-plain-rest-api.xml is created with the spring configuration you need. It does import the content pipeline, but there is not yet an entry point for content resources. Add something like this:

      <!-- Uncomment and configure to inject Content Aware Resources -->
      <!--
      <bean id="customRestContentResourceProviders" class="org.springframework.beans.factory.config.ListFactoryBean">
        <property name="sourceList">
          <list>
            <bean class="org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider">
              <constructor-arg>
                <bean class="org.example.rest.MyContentResource" />
              </constructor-arg>
            </bean>
          </list>
        </property>
      </bean>
      -->
      

      Another point: the file has "plain" in its name, a more general name is better when we prepare it for usages with content aware resources too.

      Attachments

        Activity

          People

            kmoore Kathryn Moore (Inactive)
            bleunis Bert Leunis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: