@Configuration public class BookmarkManagementConfiguration extends Object
EnableBookmarkManagement
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 |
---|
BookmarkManagementConfiguration() |
Modifier and Type | Method and Description |
---|---|
BeanFactoryBookmarkOperationAdvisor |
bookmarkAdvisor() |
BookmarkInterceptor |
bookmarkInterceptor() |
@Bean @Role(value=2) public BeanFactoryBookmarkOperationAdvisor bookmarkAdvisor()
@Bean @Role(value=2) public BookmarkInterceptor bookmarkInterceptor()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.