/** * {@inheritDoc} */ @Override public ODataService createAnnotationService(final String modelPackage) throws ODataException { AnnotationEdmProvider edmProvider = new AnnotationEdmProvider(modelPackage); AnnotationInMemoryDs dataSource = new AnnotationInMemoryDs(modelPackage); AnnotationValueAccess valueAccess = new AnnotationValueAccess(); // Edm via Annotations and ListProcessor via AnnotationDS with AnnotationsValueAccess return RuntimeDelegate.createODataSingleProcessorService(edmProvider, new ListsProcessor(dataSource, valueAccess)); }
/** * {@inheritDoc} */ @Override public ODataService createAnnotationService(final String modelPackage) throws ODataException { AnnotationEdmProvider edmProvider = new AnnotationEdmProvider(modelPackage); AnnotationInMemoryDs dataSource = new AnnotationInMemoryDs(modelPackage); AnnotationValueAccess valueAccess = new AnnotationValueAccess(); // Edm via Annotations and ListProcessor via AnnotationDS with AnnotationsValueAccess return RuntimeDelegate.createODataSingleProcessorService(edmProvider, new ListsProcessor(dataSource, valueAccess)); }
/** * {@inheritDoc} */ @Override public ODataService createAnnotationService(final String modelPackage) throws ODataException { AnnotationEdmProvider edmProvider = new AnnotationEdmProvider(modelPackage); AnnotationInMemoryDs dataSource = new AnnotationInMemoryDs(modelPackage); AnnotationValueAccess valueAccess = new AnnotationValueAccess(); // Edm via Annotations and ListProcessor via AnnotationDS with AnnotationsValueAccess return RuntimeDelegate.createODataSingleProcessorService(edmProvider, new ListsProcessor(dataSource, valueAccess)); }
/** * {@inheritDoc} */ @Override public ODataService createAnnotationService(final Collection<Class<?>> annotatedClasses) throws ODataException { AnnotationEdmProvider edmProvider = new AnnotationEdmProvider(annotatedClasses); AnnotationInMemoryDs dataSource = new AnnotationInMemoryDs(annotatedClasses); AnnotationValueAccess valueAccess = new AnnotationValueAccess(); // Edm via Annotations and ListProcessor via AnnotationDS with AnnotationsValueAccess return RuntimeDelegate.createODataSingleProcessorService(edmProvider, new ListsProcessor(dataSource, valueAccess)); } }
/** * {@inheritDoc} */ @Override public ODataService createAnnotationService(final Collection<Class<?>> annotatedClasses) throws ODataException { AnnotationEdmProvider edmProvider = new AnnotationEdmProvider(annotatedClasses); AnnotationInMemoryDs dataSource = new AnnotationInMemoryDs(annotatedClasses); AnnotationValueAccess valueAccess = new AnnotationValueAccess(); // Edm via Annotations and ListProcessor via AnnotationDS with AnnotationsValueAccess return RuntimeDelegate.createODataSingleProcessorService(edmProvider, new ListsProcessor(dataSource, valueAccess)); } }
/** * {@inheritDoc} */ @Override public ODataService createAnnotationService(final Collection<Class<?>> annotatedClasses) throws ODataException { AnnotationEdmProvider edmProvider = new AnnotationEdmProvider(annotatedClasses); AnnotationInMemoryDs dataSource = new AnnotationInMemoryDs(annotatedClasses); AnnotationValueAccess valueAccess = new AnnotationValueAccess(); // Edm via Annotations and ListProcessor via AnnotationDS with AnnotationsValueAccess return RuntimeDelegate.createODataSingleProcessorService(edmProvider, new ListsProcessor(dataSource, valueAccess)); } }