Minor improvement suggestion on configuration

0 views
Skip to first unread message

Atle Prange

unread,
Dec 15, 2009, 3:16:58 AM12/15/09
to haze...@googlegroups.com
Hi,

it would make it a bit easier to configure Hazelcast if the config
objects would have default empty content. So instead of doing:


Config cn = new XmlConfigBuilder().build();
MapStoreConfig mscfg = new MapStoreConfig();
mscfg.setClassName(className);
cn.getMapConfig( "default" ).setMapStoreConfig(mscfg);



We could omit two lines of code by doing:


Config cn = new XmlConfigBuilder().build();
cn.getMapConfig( "default" ).getMapStoreConfig().setClassName(className);



-atle

Reply all
Reply to author
Forward
0 new messages