Hi Fred, I've commented inline.
> -----Opprinnelig melding----- > Fra: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] På vegne av Fred Baube > Sendt: 18. september 2006 12:01 > Til: [email protected] > Emne: [Rife-users] *MetaData classes and inheritance > > Hi all, > > I'm finally separating my metadata into separate classes. > I'm wondering how method overrides work with this mechanism, > and what the best practice is. > > My classes are in an inheritance hierarchy, and constraints > are set at several levels. > > If I have class FooBar extends class Foo, ... > > * Should FooBarMetaData extend MetaData or FooMetaData ? > I assume, FooMetaData ? You say you have FooBar that extends Foo. What has this to do with this question? The question operates on the classes FooMetaData and MetaData, not FooBar and Foo. Can you be more specific? > > * FooBarMetaData.activateMetaData() needs (somehow) to call > FooMetaData.activateMetaData(), yes ? Yes, If there is anything in the FooMetaData class that needs to be invoked. No, if you want to override the entire functionality of that method (which normally is the case since you are overriding it). > > * ... but this is done for me if FooBarMetaData extends FooMetaData ? > Or do I have to _explicitly_ call super.activateMetaData() ? super.activateMetaData will never be invoked unless you call it from inside your class with super.activateMetaData(). > > Sorry if these are noobieish, but I hesitate to assume > anything when there is powerful classloader hacking going on ... > > > thx! > > fred > > -- > F.Baube > fbaube#saunalahti.fi > wmd 60°11'10.8"N 24°57'36.9"E > > _______________________________________________ > Rife-users mailing list > [email protected] > http://lists.uwyn.com/mailman/listinfo/rife-users > _______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
