Skip to content

Conversation

michael-simons
Copy link
Contributor

@michael-simons michael-simons commented Sep 21, 2018

This adds Neo4jBookmarkManagementConfiguration which provides an instance of BookmarkManager if necessary and Caffeine cache is on the classpath.
Depending on the kind of application, the BookmarkManager will be request scoped or singleton, as recommended by Spring Data Neo4j.

This change would provide a better getting started experience for people who want to use Neo4js bookmark support given they have all the needed dependencies (i.e. Caffeine) declared.

It's not a critical feature and especially not time relevant, given the S1P around the corner, but it would be nice to have and less error prone for the user than what there is now.

This add Neo4jBookmarkManagementConfiguration which provides an instance of BookmarkManager if necessary and Caffeine cache is on the classpath.
Depending on the kind of application, the BookmarkManager will be request scoped or singleton, as recommended by Spring Data Neo4j.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 21, 2018
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 21, 2018
@philwebb philwebb added this to the 2.1.x milestone Sep 21, 2018
@wilkinsona wilkinsona changed the title Provide an instance of BookmarkManager if nessecary and supported Provide an instance of BookmarkManager if necessary and supported Sep 22, 2018
@philwebb philwebb changed the title Provide an instance of BookmarkManager if necessary and supported Auto-configure Neo4J BookmarkManager when possible Oct 1, 2018
@philwebb philwebb self-assigned this Oct 1, 2018
philwebb pushed a commit that referenced this pull request Oct 1, 2018
Add `Neo4jBookmarkManagementConfiguration` which provides an instance
of `BookmarkManager` if necessary and Caffeine cache is on the
classpath. Depending on the kind of application, the `BookmarkManager`
will be request scoped or singleton, as recommended by Spring Data
Neo4j.

See gh-14568
@philwebb philwebb closed this in 2add65f Oct 1, 2018
philwebb added a commit that referenced this pull request Oct 1, 2018
* pr/14568:
  Polish Neo4J BookmarkManager auto-configuration
  Auto-configure Neo4J BookmarkManager when possible
@philwebb philwebb modified the milestones: 2.1.x, 2.1.0.RC1 Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants