@Configuration public class BookmarkManagementConfiguration extends Object
Note on bookmark management implementation: The implementation closely follows implementation of @EnableTransactionManagement or @EnableCaching, with simplified pointcut.
The bookmark interceptor will set BookmarkInfo thread local when a methods is annotated with @UseBookmark.
It is executed before transactional advice (see setOrder(0) ).
Neo4j transaction manager then uses
BookmarkManager bean to retrieve currently stored bookmarks and begins
new transaction using these bookmarks.
After commit new bookmark is stored in the BookmarkManager, replacing the bookmarks used to begin the transaction.
The user needs to provide the BookmarkManager bean.
|Constructor and Description|
|Modifier and Type||Method and Description|
@Bean @Role(value=2) public BeanFactoryBookmarkOperationAdvisor bookmarkAdvisor()
@Bean @Role(value=2) public BookmarkInterceptor bookmarkInterceptor()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.