Interface AnnotationServiceFactory.AnnotationServiceFactoryInstance
-
- Enclosing class:
- AnnotationServiceFactory
public static interface AnnotationServiceFactory.AnnotationServiceFactoryInstanceInterface to be implemented for an instance of aAnnotationServiceFactory.AnnotationServiceFactoryInstancewhich provides anODataServicebased on annotation fromorg.apache.olingo.olingo-odata2-api-annotationmodule (see packageorg.apache.olingo.odata2.api.annotation.edm).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ODataServicecreateAnnotationService(String modelPackage)Create anODataServicewhich is based on an EDM and Processor which are using the annotations fromorg.apache.olingo.olingo-odata2-api-annotationmodule (see packageorg.apache.olingo.odata2.api.annotation.edm) to define the model and access the data.ODataServicecreateAnnotationService(Collection<Class<?>> annotatedClasses)Create anODataServicewhich is based on an EDM and Processor which are using the annotations fromorg.apache.olingo.olingo-odata2-api-annotationmodule (see packageorg.apache.olingo.odata2.api.annotation.edm) to define the model and access the data.
-
-
-
Method Detail
-
createAnnotationService
ODataService createAnnotationService(String modelPackage) throws ODataException
Create anODataServicewhich is based on an EDM and Processor which are using the annotations fromorg.apache.olingo.olingo-odata2-api-annotationmodule (see packageorg.apache.olingo.odata2.api.annotation.edm) to define the model and access the data.- Parameters:
modelPackage- package name which is scanned for annotated classes- Returns:
- service an
ODataServicebased on on an EDM and Processor which are using annotations for model definition and data access. - Throws:
ODataException- if an error during initialization occurs
-
createAnnotationService
ODataService createAnnotationService(Collection<Class<?>> annotatedClasses) throws ODataException
Create anODataServicewhich is based on an EDM and Processor which are using the annotations fromorg.apache.olingo.olingo-odata2-api-annotationmodule (see packageorg.apache.olingo.odata2.api.annotation.edm) to define the model and access the data.- Parameters:
modelPackage- classes (which are annotated) which will be used for EDM definition and data access.- Returns:
- service an
ODataServicebased on on an EDM and Processor which are using annotations for model definition and data access. - Throws:
ODataException- if an error during initialization occurs
-
-