Hello Michael, I was looking for some kind of a factory class in the annotation-processor-api module (similar to org.apache.olingo.odata2.jpa.processor.api.factory.ODataJPAAccessFactory) that can be used for instantiating the Annotation Edm provider. Can you please tell is it ok to use the classes directly from annotation-processor-core module or will be there be some factory classes provided in the future to get a reference to Annotation Edm Provider.
Thanks, Kind Regards Chandan VA -----Original Message----- From: Bolz, Michael [mailto:[email protected]] Sent: Tuesday, February 04, 2014 10:33 AM To: [email protected] Subject: Re: How to use Annotation Library for only EDM generation * PGP Signature not checked Hi Chandan and All interested, Yes, it is possible to create just the EDM based on annotated POJOs. But it is currently not supported by the ³AnnotationServiceFactory² in the API. To create an EDM based on annotations (from our library) you need the ³AnnotationEdmProvider² from the ³annotation-processor-core² (in package "org.apache.olingo.odata2.annotation.processor.core.edm²). The ³AnnotationEdmProvider² have just to be instanciated with the annotated classes or a package to be scanned for annotated classes. As example you can take a look into "org.apache.olingo.odata2.annotation.processor.core.AnnotationServiceFactor yImpl² or the ³AnnotationEdmProviderTest² (all in the ³annotation-processor-core² project). If there are more open questions to this topic, please mail ;o) Kind regards, Michael On 03/02/14 15:01, "V.A, Chandan" <[email protected]> wrote: >Hello All, >We would like to use the annotation library to create an OData service. >We would need the annotation library to just provide us the EDM from an >annotated POJO. But would like to register our own processor for >processing the runtime data instead of using the inbuilt >AnnotationInMemory processor. > >Is this possible? If so can you please explain or point to any reference. > >Thanks, >Kind Regards >Chandan VA > * Signature checking is off by policy
