Created
August 11, 2017 21:21
-
-
Save fgreg/e833a2f26a22091a5c814035aea31f36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AssertTrue(message = "Both "+PROPERTY_NAME_CASSANDRA_KEYSPACE+" and "+PROPERTY_NAME_CASSANDRA_CONTACT_POINTS+ | |
" are required if using Cassandra.") | |
public boolean isCassandraConfigured(){ | |
if( StringUtils.isEmpty(getCassandraKeyspace()) ){ | |
return true; | |
} | |
return StringUtils.isNotEmpty(getCassandraKeyspace()) && StringUtils.isNotEmpty(getCassandraContactPoints()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment