| This class exists to avoid the massive pain of writing fully-compliant test versions of every single config object in
the system. This is used by the
com.tc.config.schema.setup.TestTVSConfigurationSetupManagerFactory ; see
there for more details.
Basically, you can use this with the
java.util.Proxy stuff and any random config interface (more
specifically, one that has methods that all take no parameters and return instances of
ConfigItem , or
subinterfaces thereof), and you'll get back a config object that's special: when you call the normal methods that
return config items, you can cast the returned item to a
com.tc.config.schema.SettableConfigItem , and that
will let you set its value. Note that doing anything else with the returned item, like trying to get its value or add
or remove listeners, will just reward you with a
com.tc.util.TCAssertionError .
This class is messy (I am in a ridiculous rush right now to get this code down). The vast majority of its code is
involved in taking a root XML bean and an XPath, and then descending through child beans — creating them along
the way, if necessary — to
|