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.