[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - ClientSessionFactoryImpl attributes
timfox
do-not-reply at jboss.com
Tue Apr 28 23:55:52 EDT 2009
ClientSessionFactoryImpl has a lot of attributes, most of which will never be changed from the defaults.
This results in quite a lot of different constructors.
One other approach to this is to remove most of the constructors and just have some basic ones, and if the user wants to change some attribute value they can just call setXXX() explicitly.
We can enforce in the code that setXXX() is only called after creation but before first use of the session factory, since changing many attributes after the session factory is used may cause unforeseen effects.
Comments?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227422#4227422
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227422
More information about the jboss-dev-forums
mailing list