db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Armin Waibel <arm...@apache.org>
Subject [Proposal] Get rid of singletons
Date Sat, 12 Jun 2004 14:37:41 GMT
Hi all,

OJB currently use a couple of classes/factories implemented as singletons:
- MetadataManager
- ObjectCacheFactory
- ConnectionFactoryFactory
- ConnectionManagerFactory
- JdbcAccessFactory
- StatementManagerFactory
- StatementsForClassFactory
- SequenceManagerFactory
- ... and more

I think it will be better to manage all factories within one main class 
(OJB 1.1). OJB use two main classes PersistenceBroker and 
PersistenceBrokerFactory, so I propose to manage all factories within PBF:
+ setter methods

this allows us to control and manage all factories from one central 
class, replace factories,...

What do you think?


To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org

View raw message