Skip to content
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

ISPN-5033 Allow undefining configurations #3516

Conversation

tristantarrant
Copy link
Member

@wburns
Copy link
Member

wburns commented Jun 1, 2015

Seems we should throw an exception if a running cache is using this configuration? Also if we have a stopped cache for this name seems we should remove it?

@wburns
Copy link
Member

wburns commented Jun 1, 2015

Although now I see that the cache configuration stop does the removal as well. In that case do we even have to make the undefining of cache configuration public?

@wburns wburns added the Question label Jun 1, 2015
@tristantarrant tristantarrant force-pushed the ISPN-5033/undefine_configuration branch 2 times, most recently from b30e99f to 4dbfb74 Compare June 3, 2015 10:20
@tristantarrant
Copy link
Member Author

@wburns I've added a check to see if a configuration is in use. I prefer to have it in as a public API for symmetry with defineConfiguration()

*
* @param configurationName the named configuration
*/
void undefineConfiguration(String configurationName);
Copy link
Member

Choose a reason for hiding this comment

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

We should add a note in the Javadoc here about the IllegalStateException, we could even add it as throws in the method declaration.

@tristantarrant tristantarrant force-pushed the ISPN-5033/undefine_configuration branch from 4dbfb74 to 439639a Compare June 11, 2015 14:43
@tristantarrant
Copy link
Member Author

I've extended the javadoc. Failures are unrelated to this change.

@wburns
Copy link
Member

wburns commented Jun 12, 2015

Pulling...

@wburns
Copy link
Member

wburns commented Jun 12, 2015

Integrated into master, thanks @tristantarrant !

@wburns wburns closed this Jun 12, 2015
@tristantarrant tristantarrant deleted the ISPN-5033/undefine_configuration branch December 14, 2015 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants