8000 Spring enhancements by cezary-butler · Pull Request #39 · patka/cassandra-migration · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Spring enhancements #39

< 8000 summary id="button-388db6092e758310" class="btn btn-sm btn-primary m-0 ml-0 ml-md-2" > New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: v3
Choose a base branch
from

Conversation

cezary-butler
Copy link
8000

Added health indicator
Added annotation which allows to delay some beans initialization after schema migration is performed
Added ability to disable migration using spring configuration

cezary-butler and others added 2 commits May 14, 2019 14:05
added annotation which allows to delay some beans initialization after schema migration is performed
.setCreateKeyspace(properties.isCreateKeyspace());
}

@Bean
Copy link
Owner
@patka patka May 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you are using the bean in the HealthIndicator you should use it in the migrationTaskChain method as well by having it autowired. Otherwise you end up having two instances of that class. This is not necessarily bad but the idea of Spring is to have beans as Singletons unless explicitly stated otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0