Extend this factory class and create own instance of {@link org.apache.olingo.odata2.api.ODataService} thattransforms Java Persistence Models into an OData Service. The factory class instantiates instances of type {@link org.apache.olingo.odata2.api.edm.provider.EdmProvider} and{@link org.apache.olingo.odata2.api.processor.ODataSingleProcessor}. The OData JPA Processor library provides a default implementation for EdmProvider and OData Single Processor.
The factory implementation is passed as servlet init parameter to a JAX-RS runtime which will instantiate a {@link org.apache.olingo.odata2.api.ODataService} implementation using this factory.
Mandatory: Implement the abstract method initializeODataJPAContext. Fill {@link org.apache.olingo.odata2.jpa.processor.api.ODataJPAContext} with contextvalues.
Sample Configuration: {@code ReferenceScenarioServlet org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet javax.ws.rs.Application org.apache.olingo.odata2.core.rest.ODataApplication org.apache.olingo.odata2.processor.factory foo.bar.sample.processor.SampleProcessorFactory org.apache.olingo.odata2.path.split 2 1 }
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |