M
Maciek Zywno
hello
I guess that usually methods parameters are checked against being null,
outside of some range etc. in a method body just before an actual method
logic code. Then probably either runtime exception is thrown if there is
something wrong with parameters or proceed to the actual method logic.
I am curious of your opinion about the idea to make some parameters
check validation configuration in xml (some generic solution i.e. e.g.
checks against null) and let some proxy read this configuration and do
parameters check before invoking real method? Maybe it would be possible
to take such parameters validation outside meethod and make it this
validation declaratively configurable?
Does it sound logcal?
I would appreaciate any opinion
regards
Maciek Zywno
I guess that usually methods parameters are checked against being null,
outside of some range etc. in a method body just before an actual method
logic code. Then probably either runtime exception is thrown if there is
something wrong with parameters or proceed to the actual method logic.
I am curious of your opinion about the idea to make some parameters
check validation configuration in xml (some generic solution i.e. e.g.
checks against null) and let some proxy read this configuration and do
parameters check before invoking real method? Maybe it would be possible
to take such parameters validation outside meethod and make it this
validation declaratively configurable?
Does it sound logcal?
I would appreaciate any opinion
regards
Maciek Zywno