Menu

#22 way to indicate invalid configuration document for component

open
nobody
5
2004-03-29
2004-03-29
Anand Raman
No

Carbon components are strongly tied to particular
configuration interfaces. What I mean is that they can
only work if a particular configuration interface is suplied
or any child configuration interface is supplied. Mapping
of the component with the configuration interface
happens in the xml file. There is no way to know until
run time that a supplied configuration object is invalid.

Can we create a new expection which points out the
configuration interface is not valid for the component.
Currently the only way this is possible is by throwing a
InvalidConfigurationException. None of the constructors
exposed by InvalidConfigurationException are appropriate
for this situation, as it not about a property but about
the entire configuration document.

anand

Discussion


Log in to post a comment.

MongoDB Logo MongoDB