Skip to content

Instantly share code, notes, and snippets.

@fgreg
Created August 11, 2017 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fgreg/e833a2f26a22091a5c814035aea31f36 to your computer and use it in GitHub Desktop.
Save fgreg/e833a2f26a22091a5c814035aea31f36 to your computer and use it in GitHub Desktop.
@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