If you are referring to java.util.Observable
, there's no clean way to do it. The class has a private
Vector
field to store the registered Observable
instances. Sub classes do not have access to it.
I recommend you implement your own Observer/Observable pattern.
By not clean, I mean you could use reflection, but don't.