Hi Chandan,

The intention was to only provide currently necessary methods in the
“AnnotationServiceFactory” and then if a use case is there extend the
factory in a further release.

So IMHO for testing whether the ‘AnnotationEdmProvider’ fit for your use
case try it via the core module and if it works we should add a factory
method in the ‘AnnotationServiceFactor” like ‘EdmProvider
createAnnotationEdmProvider(…)’.

But I’am also open for other opinions and suggestions  ;o)


Kind regards,
Michael



On 04/02/14 07:01, "V.A, Chandan" <[email protected]> wrote:

>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.AnnotationServiceFacto
>r
>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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to