Re: [OJB-developers] Why use PersistenceBrokerImpl instead of PersistenceBroker in the constructor f
Brought to you by:
thma
From: Thomas M. <tho...@ho...> - 2002-03-20 05:58:21
|
Hi John, John Wang wrote: > As I want to override the functins of PersistenceBrokerImpl to expose > more functions, I am wondering that in the constructor for: > > StatementManager.java > > ConnectionFactoryDefaultImpl.java > > ConnectionManager.java > > SequenceManager.java > > ... > > They all use the PersistenceBrokerImpl as a parameter in the > constructor, instead of using PersistenceBroker. I am wondering is there > specific reason to use impl instead of interface? > I'm not sure if it is always necessary to pass PBImpl instead PB objects. But there are at least several places where it's obligatory to pass PBImpl. PBImpl provide several things not present in PB interface. BUT: if you derive modified Brokers that extend PBImpl there will be no problems. BTW: What additional functionality do you want to expose? Maybe its useful for others too? cu, Thomas > > > Best regards, > > John W > > > |