Re: AW: [Objectbridge-developers] Re: questions
Brought to you by:
thma
From: David W F. <dw...@la...> - 2001-10-04 13:48:16
|
Mahler Thomas writes: > Hi David, >=20 > > -----Urspr=FCngliche Nachricht----- > > Von: David Forslund [mailto:dw...@la...] > > Gesendet: Mittwoch, 3. Oktober 2001 21:11 > > An: obj...@li... > > Betreff: [Objectbridge-developers] Re: questions > >=20 > >=20 > > I notice that in the ObjectCacheDefaultImpl class which is an=20 > > implementation of ObjectCache, that it extends > > the implementation by adding methods not defined in the ObjectCach= e=20 > > interface. =20 >=20 > I don't see any public member functions in ObjectCacheDefaultImpl th= at are > not specified in the interface. > There are also no direct references to ObjectCacheDefaultImpl method= s from > other part of OJB. >=20 > The only thing I saw is a static method setDebug(boolean) which migh= t only > be useful for internal development. >=20 We were using the setDebug method in the earlier version. That static method isn't very accessible anymore because of the Factory class. We obviously can work around this, and it isn't a big deal. Thanks, Dave > I can't see any harm here ? >=20 > > This is true in some other classes, too, such > > as SequenceManagerDefaultImpl. =20 >=20 > I did not find anything of the kind in SequenceManagerDefaultImpl ! You are right. I think this was true in the last version, but not this= one. Thanks, Dave >=20 > Thus one cannot pass an=20 > > instance of the=20 > > ObjectCache around because some > > methods aren't defined there. Is this intentional? This=20 > > seems to me to=20 > > be a slightly strange design pattern. Usually > > I would have a class that implements the interface and then=20 > > extend that. >=20 > I tried to apply the "Abstract Factory" pattern for all pluggable OJ= B > components.=20 > If there are any references to methods that are not declared in the > respective interface it is clearly an error. > If you find any, please tell me. I will also have another code walkt= hrough > to be sure...=20 >=20 > Thanks, >=20 > Thomas >=20 > >=20 > > Thanks, > >=20 > > Dave > >=20 > >=20 > > _______________________________________________ > > Objectbridge-developers mailing list > > Obj...@li... > > https://lists.sourceforge.net/lists/listinfo/objectbridge-develope= rs > >=20 |