+ /**
+ * The HttpEntry class is not thread-safe due to the contained JanusGraphDBEngine.
+ * As such, assure that a new instance is returned for every injection by making it
+ * request scoped.
+ */
+ @RequestScope
+ @Bean(name = "requestScopedTraversalUriHttpEntry")
+ public HttpEntry requestScopedTraversalUriHttpEntry() {
+ return new HttpEntry(ModelType.MOXY, QueryStyle.TRAVERSAL_URI);
+ }
+
+ /**
+ * The HttpEntry class is not thread-safe due to the contained JanusGraphDBEngine.
+ * As such, assure that a new instance is returned for every injection by making it
+ * request scoped.
+ */
+ @RequestScope
+ @Bean(name = "requestScopedTraversalHttpEntry")
+ public HttpEntry requestScopedTraversalHttpEntry() {
+ return new HttpEntry(ModelType.MOXY, QueryStyle.TRAVERSAL);
+ }
+