[jdom-interest] JDOM & security

Niklas Mehner wombat at uni.de
Wed Aug 2 23:56:45 PDT 2000

> If you have a couple of methods in each of your classes that require 
> configuration thus;
> Element getConfig()
Since Element is not a final class, and setParent() is not a final method, this might 
return anything, and do anything, when Element.setParent() is called.
The only way to handle this (I cann think of) is to make the method :

  void getConfig(Element config)

but this will result in encapsulating every single element in
<configelement> configuration here </configelement>, which is not really that nice.


More information about the jdom-interest mailing list