[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Use the positive for boolean configuration parameters
timfox
do-not-reply at jboss.com
Sun Jun 15 09:37:17 EDT 2008
In our config we were mixing and matching both positive and negatives for configuration parameters e.g.:
isSSLEnabled
isInVMDisabled
This is inconsistent and confusing for the user.
I have changed these now so they are all expressed in the positive:
isSSLEnabled
isInVMOptimisationEnabled
I have also done some refactoring of the configuration - ConfigurationImpl, FileConfiguration and ConnectionParamsImpl to remove duplicated config, fixed settings which had no defaults, made sure defaults are only in one place (they were in many before) and fixed some settings that weren't being loaded from the config.
I've also added complete tests for these classes.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158207#4158207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158207
More information about the jboss-dev-forums
mailing list